Commit 15d30b46 authored by Geert Uytterhoeven's avatar Geert Uytterhoeven Committed by Javier Martinez Canillas

drm/ssd130x: Use bool for ssd130x_deviceinfo flags

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: default avatarGeert Uytterhoeven <geert@linux-m68k.org>
Reviewed-by: default avatarJavier Martinez Canillas <javierm@redhat.com>
Tested-by: default avatarJavier Martinez Canillas <javierm@redhat.com>
Signed-off-by: default avatarJavier Martinez Canillas <javierm@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/285005ff361969eff001386c5f97990f0e703838.1692888745.git.geert@linux-m68k.org
parent 4dbce3d6
...@@ -40,8 +40,8 @@ struct ssd130x_deviceinfo { ...@@ -40,8 +40,8 @@ struct ssd130x_deviceinfo {
u32 default_width; u32 default_width;
u32 default_height; u32 default_height;
u32 page_height; u32 page_height;
int need_pwm; bool need_pwm;
int need_chargepump; bool need_chargepump;
bool page_mode_only; bool page_mode_only;
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment