Skip to content

Commit 33d0297

Browse files
geertuhdeller
authored andcommitted
fbdev: ssd1307fb: Use bool for ssd1307fb_deviceinfo flags
The .need_pwm and .need_chargepump fields in struct ssd1307fb_deviceinfo are flags that can have only two possible values: 0 and 1. Reduce kernel size by changing their types from int to bool. Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org> Acked-by: Javier Martinez Canillas <javierm@redhat.com> Signed-off-by: Helge Deller <deller@gmx.de>
1 parent a9415b0 commit 33d0297

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

drivers/video/fbdev/ssd1307fb.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,8 @@ struct ssd1307fb_deviceinfo {
5252
u32 default_vcomh;
5353
u32 default_dclk_div;
5454
u32 default_dclk_frq;
55-
int need_pwm;
56-
int need_chargepump;
55+
bool need_pwm;
56+
bool need_chargepump;
5757
};
5858

5959
struct ssd1307fb_par {

0 commit comments

Comments
 (0)