Skip to content

Commit 15d30b4

Browse files
geertumartinezjavier
authored andcommitted
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: Geert Uytterhoeven <[email protected]> Reviewed-by: Javier Martinez Canillas <[email protected]> Tested-by: Javier Martinez Canillas <[email protected]> Signed-off-by: Javier Martinez Canillas <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/285005ff361969eff001386c5f97990f0e703838.1692888745.git.geert@linux-m68k.org
1 parent 4dbce3d commit 15d30b4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/gpu/drm/solomon/ssd130x.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ struct ssd130x_deviceinfo {
4040
u32 default_width;
4141
u32 default_height;
4242
u32 page_height;
43-
int need_pwm;
44-
int need_chargepump;
43+
bool need_pwm;
44+
bool need_chargepump;
4545
bool page_mode_only;
4646
};
4747

0 commit comments

Comments
 (0)