drm/ssd130x: Use bool for ssd130x_deviceinfo flags
authorGeert Uytterhoeven <geert@linux-m68k.org>
Thu, 24 Aug 2023 15:08:41 +0000 (17:08 +0200)
committerJavier Martinez Canillas <javierm@redhat.com>
Sun, 10 Sep 2023 07:05:47 +0000 (09:05 +0200)
The .need_pwm and .need_chargepump fields in struct ssd130x_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>
Reviewed-by: Javier Martinez Canillas <javierm@redhat.com>
Tested-by: Javier Martinez Canillas <javierm@redhat.com>
Signed-off-by: Javier Martinez Canillas <javierm@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/285005ff361969eff001386c5f97990f0e703838.1692888745.git.geert@linux-m68k.org
drivers/gpu/drm/solomon/ssd130x.h

index 87968b3e7fb8279dc7afa03c3864d4e0f0c2d51a..aa39b13615ebedf29a5b7d2eaa92fd4de87291ea 100644 (file)
@@ -40,8 +40,8 @@ struct ssd130x_deviceinfo {
        u32 default_width;
        u32 default_height;
        u32 page_height;
-       int need_pwm;
-       int need_chargepump;
+       bool need_pwm;
+       bool need_chargepump;
        bool page_mode_only;
 };