Skip to content

Commit 9a7bb61

Browse files
Thomas Zimmermannlag-linaro
authored andcommitted
staging: fbtft: Remove reference to fb_blank
The field fb_blank in struct backlight_properties is deprecated and should not be used. Don't output its value in the driver's debug print. Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de> Reviewed-by: Dan Carpenter <dan.carpenter@linaro.org> Link: https://lore.kernel.org/r/20240319093915.31778-6-tzimmermann@suse.de Signed-off-by: Lee Jones <lee@kernel.org>
1 parent 6be0fb6 commit 9a7bb61

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

drivers/staging/fbtft/fb_ssd1351.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -194,9 +194,7 @@ static int update_onboard_backlight(struct backlight_device *bd)
194194
struct fbtft_par *par = bl_get_data(bd);
195195
bool on;
196196

197-
fbtft_par_dbg(DEBUG_BACKLIGHT, par,
198-
"%s: power=%d, fb_blank=%d\n",
199-
__func__, bd->props.power, bd->props.fb_blank);
197+
fbtft_par_dbg(DEBUG_BACKLIGHT, par, "%s: power=%d\n", __func__, bd->props.power);
200198

201199
on = !backlight_is_blank(bd);
202200
/* Onboard backlight connected to GPIO0 on SSD1351, GPIO1 unused */

drivers/staging/fbtft/fbtft-core.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -133,9 +133,8 @@ static int fbtft_backlight_update_status(struct backlight_device *bd)
133133
struct fbtft_par *par = bl_get_data(bd);
134134
bool polarity = par->polarity;
135135

136-
fbtft_par_dbg(DEBUG_BACKLIGHT, par,
137-
"%s: polarity=%d, power=%d, fb_blank=%d\n",
138-
__func__, polarity, bd->props.power, bd->props.fb_blank);
136+
fbtft_par_dbg(DEBUG_BACKLIGHT, par, "%s: polarity=%d, power=%d\n", __func__,
137+
polarity, bd->props.power);
139138

140139
if (!backlight_is_blank(bd))
141140
gpiod_set_value(par->gpio.led[0], polarity);

0 commit comments

Comments
 (0)