Lines Matching refs:dev
112 dev_err(bl->lp->dev, "invalid mode: %d\n", cfg->bl_mode); in lp8788_backlight_configure()
125 struct device *dev; in lp8788_pwm_ctrl() local
133 dev = bl->lp->dev; in lp8788_pwm_ctrl()
137 pwm = devm_pwm_get(dev, LP8788_DEV_BACKLIGHT); in lp8788_pwm_ctrl()
139 dev_err(dev, "can not get PWM device\n"); in lp8788_pwm_ctrl()
213 bl_dev = backlight_device_register(name, bl->lp->dev, bl, in lp8788_backlight_register()
230 static ssize_t lp8788_get_bl_ctl_mode(struct device *dev, in lp8788_get_bl_ctl_mode() argument
233 struct lp8788_bl *bl = dev_get_drvdata(dev); in lp8788_get_bl_ctl_mode()
260 struct lp8788 *lp = dev_get_drvdata(pdev->dev.parent); in lp8788_backlight_probe()
264 bl = devm_kzalloc(lp->dev, sizeof(struct lp8788_bl), GFP_KERNEL); in lp8788_backlight_probe()
276 dev_err(lp->dev, "backlight config err: %d\n", ret); in lp8788_backlight_probe()
282 dev_err(lp->dev, "register backlight err: %d\n", ret); in lp8788_backlight_probe()
286 ret = sysfs_create_group(&pdev->dev.kobj, &lp8788_attr_group); in lp8788_backlight_probe()
288 dev_err(lp->dev, "register sysfs err: %d\n", ret); in lp8788_backlight_probe()
309 sysfs_remove_group(&pdev->dev.kobj, &lp8788_attr_group); in lp8788_backlight_remove()