aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Zimmermann <[email protected]>2024-03-05 17:22:35 +0100
committerLee Jones <[email protected]>2024-03-28 10:08:54 +0000
commit330682161d8702880ec72e9f4ea982deba9935dc (patch)
treec1f0cc31fe4ca47bedd8e64cc149aa425a856526
parente6c6fea5c314d90dbfca4983f2ea46388aab3bb0 (diff)
auxdisplay: ht16k33: Remove struct backlight_ops.check_fb
The driver sets struct fb_info.bl_dev to the correct backlight device. Thus rely on the backlight core code to match backlight and framebuffer devices, and remove the extra check_fb() function from struct backlight_ops. v3: * use 'check_fb()' in commit message (Andy) Signed-off-by: Thomas Zimmermann <[email protected]> Cc: Robin van der Gracht <[email protected]> Acked-by: Robin van der Gracht <[email protected]> Acked-by: Andy Shevchenko <[email protected]> Reviewed-by: Javier Martinez Canillas <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Lee Jones <[email protected]>
-rw-r--r--drivers/auxdisplay/ht16k33.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/drivers/auxdisplay/ht16k33.c b/drivers/auxdisplay/ht16k33.c
index 96acfb2b58cd..82e55d61893b 100644
--- a/drivers/auxdisplay/ht16k33.c
+++ b/drivers/auxdisplay/ht16k33.c
@@ -295,16 +295,8 @@ static int ht16k33_bl_update_status(struct backlight_device *bl)
return ht16k33_brightness_set(priv, brightness);
}
-static int ht16k33_bl_check_fb(struct backlight_device *bl, struct fb_info *fi)
-{
- struct ht16k33_priv *priv = bl_get_data(bl);
-
- return (fi == NULL) || (fi->par == priv);
-}
-
static const struct backlight_ops ht16k33_bl_ops = {
.update_status = ht16k33_bl_update_status,
- .check_fb = ht16k33_bl_check_fb,
};
/*