Skip to content

Commit

Permalink
fbdev: ssd1307fb: Use bool for ssd1307fb_deviceinfo flags
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Geert Uytterhoeven authored and Helge Deller committed Aug 31, 2023
1 parent a9415b0 commit 33d0297
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/video/fbdev/ssd1307fb.c
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ struct ssd1307fb_deviceinfo {
u32 default_vcomh;
u32 default_dclk_div;
u32 default_dclk_frq;
int need_pwm;
int need_chargepump;
bool need_pwm;
bool need_chargepump;
};

struct ssd1307fb_par {
Expand Down

0 comments on commit 33d0297

Please sign in to comment.