Merge tag 'backlight-next-6.10' of git://git.kernel.org/pub/scm/linux/kernel/git...
[linux-2.6-block.git] / drivers / hid / hid-picolcd_fb.c
index 063f9c01d2f73899811a319a1c35a7c6919c1fa1..83e3409d170c843910c7b513bdd3cab83923f334 100644 (file)
@@ -491,6 +491,12 @@ int picolcd_init_framebuffer(struct picolcd_data *data)
        info->fix = picolcdfb_fix;
        info->fix.smem_len   = PICOLCDFB_SIZE*8;
 
+#ifdef CONFIG_FB_BACKLIGHT
+#ifdef CONFIG_HID_PICOLCD_BACKLIGHT
+       info->bl_dev = data->backlight;
+#endif
+#endif
+
        fbdata = info->par;
        spin_lock_init(&fbdata->lock);
        fbdata->picolcd = data;