staging: sm7xxfb: checkpatch cleanup
Subsystems (2)
cover staging: sm7xxfb: checkpatch cleanup
Hi,
Continuing with the checkpatch cleanup, this series will just fix the CamelCase. Two different patches are made just to make review easier.
Now there is only one checkpatch warning pending about __setup, which will be fixed in one of the upcoming patch where I will introduce the use of fb_get_options() and that will also fix the compilation warning of unused function.
thanks
sudip
Sudip Mukherjee (2):
staging: sm7xxfb: fix camelcase
staging: sm7xxfb: fix remaining camelcase
drivers/staging/sm7xxfb/sm7xx.h | 44 ++++++++++++++--------------- drivers/staging/sm7xxfb/sm7xxfb.c | 58 +++++++++++++++++++-------------------- 2 files changed, 51 insertions(+), 51 deletions(-)
Signature · 1 line
1.8.1.2
PATCH 1/2 staging: sm7xxfb: fix CamelCase
since mixed case names are not encouraged in coding, so those has been changed to their corresponding lowercase version.
--- drivers/staging/sm7xxfb/sm7xx.h | 14 +++++++------- drivers/staging/sm7xxfb/sm7xxfb.c | 12 ++++++------ 2 files changed, 13 insertions(+), 13 deletions(-)
drivers/staging/sm7xxfb/sm7xx.h +7 -7
@@ -29,14 +29,14 @@#define dac_reg (0x3c8)#define dac_val (0x3c9) -extern void __iomem *smtc_RegBaseAddress; -#define smtc_mmiowb (dat, reg) writeb(dat, smtc_RegBaseAddress + reg) -#define smtc_mmioww (dat, reg) writew(dat, smtc_RegBaseAddress + reg) -#define smtc_mmiowl (dat, reg) writel(dat, smtc_RegBaseAddress + reg) +extern void __iomem *smtc_regbaseaddress; +#define smtc_mmiowb (dat, reg) writeb(dat, smtc_regbaseaddress + reg) +#define smtc_mmioww (dat, reg) writew(dat, smtc_regbaseaddress + reg) +#define smtc_mmiowl (dat, reg) writel(dat, smtc_regbaseaddress + reg) -#define smtc_mmiorb (reg) readb(smtc_RegBaseAddress + reg) -#define smtc_mmiorw (reg) readw(smtc_RegBaseAddress + reg) -#define smtc_mmiorl (reg) readl(smtc_RegBaseAddress + reg) +#define smtc_mmiorb (reg) readb(smtc_regbaseaddress + reg) +#define smtc_mmiorw (reg) readw(smtc_regbaseaddress + reg) +#define smtc_mmiorl (reg) readl(smtc_regbaseaddress + reg)#define SIZE_SR00_SR04 (0x04 - 0x00 + 1)#define SIZE_SR10_SR24 (0x24 - 0x10 + 1)
drivers/staging/sm7xxfb/sm7xxfb.c +6 -6
@@ -56,7 +56,7 @@ struct smtcfb_info {u32 colreg[17 ]; }; -void __iomem *smtc_RegBaseAddress;/* Memory Map IO starting address */ +void __iomem *smtc_regbaseaddress;/* Memory Map IO starting address */ static struct fb_var_screeninfo smtcfb_var = { .xres =1024 ,
@@ -711,8 +711,8 @@ static void smtc_free_fb_info(struct smtcfb_info *sfb)static void smtc_unmap_mmio (struct smtcfb_info *sfb) { -if (sfb && smtc_RegBaseAddress) - smtc_RegBaseAddress =NULL ; +if (sfb && smtc_regbaseaddress) + smtc_regbaseaddress =NULL ; }/*
@@ -823,7 +823,7 @@ static int smtcfb_pci_probe(struct pci_dev *pdev,#else sfb->lfb =ioremap (mmio_base,0x00800000 );#endif - sfb->mmio = (smtc_RegBaseAddress = + sfb->mmio = (smtc_regbaseaddress = sfb->lfb +0x00700000 ); sfb->dp_regs = sfb->lfb +0x00408000 ; sfb->vp_regs = sfb->lfb +0x0040c000 ;
@@ -833,7 +833,7 @@ static int smtcfb_pci_probe(struct pci_dev *pdev, dev_info(&pdev->dev, "sfb->lfb=%p", sfb->lfb); }#endif -if (!smtc_RegBaseAddress) { +if (!smtc_regbaseaddress) {dev_err (&pdev->dev,"%s: unable to map memory mapped IO!" , sfb->fb.fix.id);
@@ -859,7 +859,7 @@ static int smtcfb_pci_probe(struct pci_dev *pdev, smem_size =SM722_VIDEOMEMORYSIZE ; sfb->dp_regs =ioremap (mmio_base,0x00a00000 ); sfb->lfb = sfb->dp_regs +0x00200000 ; - sfb->mmio = (smtc_RegBaseAddress = + sfb->mmio = (smtc_regbaseaddress = sfb->dp_regs +0x000c0000 ); sfb->vp_regs = sfb->dp_regs +0x800 ;
Signature · 1 line
1.8.1.2
PATCH 2/2 staging: sm7xxfb: fix remaining CamelCase
In reply to Sudip Mukherjeesince mixed case names are not encouraged in coding, so those has been changed to their corresponding lowercase version.
--- drivers/staging/sm7xxfb/sm7xx.h | 30 ++++++++++++------------- drivers/staging/sm7xxfb/sm7xxfb.c | 46 +++++++++++++++++++-------------------- 2 files changed, 38 insertions(+), 38 deletions(-)
drivers/staging/sm7xxfb/sm7xx.h +15 -15
@@ -99,27 +99,27 @@ static inline unsigned int smtc_seqr(int reg)*/ struct ModeInit { -int mmSizeX; -int mmSizeY; +int mmsizex; +int mmsizey;int bpp;int hz; -unsigned char Init_MISC; -unsigned char Init_SR00_SR04[SIZE_SR00_SR04 ]; -unsigned char Init_SR10_SR24[SIZE_SR10_SR24 ]; -unsigned char Init_SR30_SR75[SIZE_SR30_SR75 ]; -unsigned char Init_SR80_SR93[SIZE_SR80_SR93 ]; -unsigned char Init_SRA0_SRAF[SIZE_SRA0_SRAF ]; -unsigned char Init_GR00_GR08[SIZE_GR00_GR08 ]; -unsigned char Init_AR00_AR14[SIZE_AR00_AR14 ]; -unsigned char Init_CR00_CR18[SIZE_CR00_CR18 ]; -unsigned char Init_CR30_CR4D[SIZE_CR30_CR4D ]; -unsigned char Init_CR90_CRA7[SIZE_CR90_CRA7 ]; +unsigned char init_misc; +unsigned char init_sr00_sr04[SIZE_SR00_SR04 ]; +unsigned char init_sr10_sr24[SIZE_SR10_SR24 ]; +unsigned char init_sr30_sr75[SIZE_SR30_SR75 ]; +unsigned char init_sr80_sr93[SIZE_SR80_SR93 ]; +unsigned char init_sra0_sraf[SIZE_SRA0_SRAF ]; +unsigned char init_gr00_gr08[SIZE_GR00_GR08 ]; +unsigned char init_ar00_ar14[SIZE_AR00_AR14 ]; +unsigned char init_cr00_cr18[SIZE_CR00_CR18 ]; +unsigned char init_cr30_cr4d[SIZE_CR30_CR4D ]; +unsigned char init_cr90_cra7[SIZE_CR90_CRA7 ]; };/********************************************************************** SM712 Mode table. **********************************************************************/ -struct ModeInit VGAMode[] = { +struct ModeInit vgamode[] = { {/* mode#0: 640 x 480 16Bpp 60Hz */ 640 ,480 ,16 ,60 ,
@@ -776,4 +776,4 @@ struct ModeInit VGAMode[] = { }, }; -#define numVGAModes ARRAY_SIZE(VGAMode) +#define numvgamodes ARRAY_SIZE(vgamode)
drivers/staging/sm7xxfb/sm7xxfb.c +23 -23
114 lines not on this page · raw message
Signature · 1 line
1.8.1.2