Lines Matching full:backlight
3 * shmob_drm_backlight.c -- SH Mobile DRM Backlight
10 #include <linux/backlight.h>
20 const struct shmob_drm_backlight_data *bdata = &sdev->pdata->backlight; in shmob_drm_backlight_update()
30 const struct shmob_drm_backlight_data *bdata = &sdev->pdata->backlight; in shmob_drm_backlight_get_brightness()
43 if (scon->backlight == NULL) in shmob_drm_backlight_dpms()
46 scon->backlight->props.power = mode == DRM_MODE_DPMS_ON in shmob_drm_backlight_dpms()
48 backlight_update_status(scon->backlight); in shmob_drm_backlight_dpms()
54 const struct shmob_drm_backlight_data *bdata = &sdev->pdata->backlight; in shmob_drm_backlight_init()
57 struct backlight_device *backlight; in shmob_drm_backlight_init() local
62 backlight = backlight_device_register(bdata->name, dev->dev, scon, in shmob_drm_backlight_init()
64 if (IS_ERR(backlight)) { in shmob_drm_backlight_init()
65 dev_err(dev->dev, "unable to register backlight device: %ld\n", in shmob_drm_backlight_init()
66 PTR_ERR(backlight)); in shmob_drm_backlight_init()
67 return PTR_ERR(backlight); in shmob_drm_backlight_init()
70 backlight->props.max_brightness = bdata->max_brightness; in shmob_drm_backlight_init()
71 backlight->props.brightness = bdata->max_brightness; in shmob_drm_backlight_init()
72 backlight->props.power = FB_BLANK_POWERDOWN; in shmob_drm_backlight_init()
73 backlight_update_status(backlight); in shmob_drm_backlight_init()
75 scon->backlight = backlight; in shmob_drm_backlight_init()
81 backlight_device_unregister(scon->backlight); in shmob_drm_backlight_exit()