From: Geert Uytterhoeven Date: Thu, 24 Aug 2023 15:08:41 +0000 (+0200) Subject: drm/ssd130x: Use bool for ssd130x_deviceinfo flags X-Git-Tag: microblaze-v6.8~11^2~24^2 X-Git-Url: http://git.monstr.eu/?a=commitdiff_plain;h=15d30b46573d75f5cb58cfacded8ebab9c76a2b0;p=linux-2.6-microblaze.git 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 Reviewed-by: Javier Martinez Canillas Tested-by: Javier Martinez Canillas Signed-off-by: Javier Martinez Canillas Link: https://patchwork.freedesktop.org/patch/msgid/285005ff361969eff001386c5f97990f0e703838.1692888745.git.geert@linux-m68k.org --- diff --git a/drivers/gpu/drm/solomon/ssd130x.h b/drivers/gpu/drm/solomon/ssd130x.h index 87968b3e7fb8..aa39b13615eb 100644 --- a/drivers/gpu/drm/solomon/ssd130x.h +++ b/drivers/gpu/drm/solomon/ssd130x.h @@ -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; };