From: Geert Uytterhoeven Date: Thu, 31 Aug 2023 12:05:54 +0000 (+0200) Subject: fbdev: ssd1307fb: Use bool for ssd1307fb_deviceinfo flags X-Git-Tag: v6.6.7~2015^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=33d02972d8be284faee25d8b9a59017c07cde4db;p=platform%2Fkernel%2Flinux-starfive.git 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 Acked-by: Javier Martinez Canillas Signed-off-by: Helge Deller --- diff --git a/drivers/video/fbdev/ssd1307fb.c b/drivers/video/fbdev/ssd1307fb.c index 86dd240..5ae48e3 100644 --- a/drivers/video/fbdev/ssd1307fb.c +++ b/drivers/video/fbdev/ssd1307fb.c @@ -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 {