Skip to content

Commit fdcb641

Browse files
ipenas-clgregkh
authored andcommitted
staging: sm750fb: fix CamelCase variable naming
Replace CamelCase variable 'Bpp' with lowercase 'bpp' to fix checkpatch warnings about improper variable naming convention. Signed-off-by: Ignacio Pena <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 20e81db commit fdcb641

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

drivers/staging/sm750fb/sm750.c

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ static void lynxfb_ops_fillrect(struct fb_info *info,
160160
{
161161
struct lynxfb_par *par;
162162
struct sm750_dev *sm750_dev;
163-
unsigned int base, pitch, Bpp, rop;
163+
unsigned int base, pitch, bpp, rop;
164164
u32 color;
165165

166166
if (info->state != FBINFO_STATE_RUNNING)
@@ -175,9 +175,9 @@ static void lynxfb_ops_fillrect(struct fb_info *info,
175175
*/
176176
base = par->crtc.o_screen;
177177
pitch = info->fix.line_length;
178-
Bpp = info->var.bits_per_pixel >> 3;
178+
bpp = info->var.bits_per_pixel >> 3;
179179

180-
color = (Bpp == 1) ? region->color :
180+
color = (bpp == 1) ? region->color :
181181
((u32 *)info->pseudo_palette)[region->color];
182182
rop = (region->rop != ROP_COPY) ? HW_ROP2_XOR : HW_ROP2_COPY;
183183

@@ -190,7 +190,7 @@ static void lynxfb_ops_fillrect(struct fb_info *info,
190190
spin_lock(&sm750_dev->slock);
191191

192192
sm750_dev->accel.de_fillrect(&sm750_dev->accel,
193-
base, pitch, Bpp,
193+
base, pitch, bpp,
194194
region->dx, region->dy,
195195
region->width, region->height,
196196
color, rop);
@@ -202,7 +202,7 @@ static void lynxfb_ops_copyarea(struct fb_info *info,
202202
{
203203
struct lynxfb_par *par;
204204
struct sm750_dev *sm750_dev;
205-
unsigned int base, pitch, Bpp;
205+
unsigned int base, pitch, bpp;
206206

207207
par = info->par;
208208
sm750_dev = par->dev;
@@ -213,7 +213,7 @@ static void lynxfb_ops_copyarea(struct fb_info *info,
213213
*/
214214
base = par->crtc.o_screen;
215215
pitch = info->fix.line_length;
216-
Bpp = info->var.bits_per_pixel >> 3;
216+
bpp = info->var.bits_per_pixel >> 3;
217217

218218
/*
219219
* If not use spin_lock, system will die if user load driver
@@ -225,7 +225,7 @@ static void lynxfb_ops_copyarea(struct fb_info *info,
225225

226226
sm750_dev->accel.de_copyarea(&sm750_dev->accel,
227227
base, pitch, region->sx, region->sy,
228-
base, pitch, Bpp, region->dx, region->dy,
228+
base, pitch, bpp, region->dx, region->dy,
229229
region->width, region->height,
230230
HW_ROP2_COPY);
231231
spin_unlock(&sm750_dev->slock);
@@ -234,7 +234,7 @@ static void lynxfb_ops_copyarea(struct fb_info *info,
234234
static void lynxfb_ops_imageblit(struct fb_info *info,
235235
const struct fb_image *image)
236236
{
237-
unsigned int base, pitch, Bpp;
237+
unsigned int base, pitch, bpp;
238238
unsigned int fgcol, bgcol;
239239
struct lynxfb_par *par;
240240
struct sm750_dev *sm750_dev;
@@ -247,7 +247,7 @@ static void lynxfb_ops_imageblit(struct fb_info *info,
247247
*/
248248
base = par->crtc.o_screen;
249249
pitch = info->fix.line_length;
250-
Bpp = info->var.bits_per_pixel >> 3;
250+
bpp = info->var.bits_per_pixel >> 3;
251251

252252
/* TODO: Implement hardware acceleration for image->depth > 1 */
253253
if (image->depth != 1) {
@@ -274,7 +274,7 @@ static void lynxfb_ops_imageblit(struct fb_info *info,
274274

275275
sm750_dev->accel.de_imageblit(&sm750_dev->accel,
276276
image->data, image->width >> 3, 0,
277-
base, pitch, Bpp,
277+
base, pitch, bpp,
278278
image->dx, image->dy,
279279
image->width, image->height,
280280
fgcol, bgcol, HW_ROP2_COPY);

0 commit comments

Comments
 (0)