Skip to content

Commit

Permalink
drm/ssd130x: Use bool for ssd130x_deviceinfo flags
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Geert Uytterhoeven authored and Javier Martinez Canillas committed Sep 10, 2023
1 parent 4dbce3d commit 15d30b4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/gpu/drm/solomon/ssd130x.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
};

Expand Down

0 comments on commit 15d30b4

Please sign in to comment.