Lines Matching refs:bd
32 static void hp680bl_send_intensity(struct backlight_device *bd) in hp680bl_send_intensity() argument
36 int intensity = backlight_get_brightness(bd); in hp680bl_send_intensity()
66 struct backlight_device *bd = dev_get_drvdata(dev); in hp680bl_suspend() local
69 hp680bl_send_intensity(bd); in hp680bl_suspend()
75 struct backlight_device *bd = dev_get_drvdata(dev); in hp680bl_resume() local
78 hp680bl_send_intensity(bd); in hp680bl_resume()
85 static int hp680bl_set_intensity(struct backlight_device *bd) in hp680bl_set_intensity() argument
87 hp680bl_send_intensity(bd); in hp680bl_set_intensity()
91 static int hp680bl_get_intensity(struct backlight_device *bd) in hp680bl_get_intensity() argument
104 struct backlight_device *bd; in hp680bl_probe() local
109 bd = devm_backlight_device_register(&pdev->dev, "hp680-bl", &pdev->dev, in hp680bl_probe()
111 if (IS_ERR(bd)) in hp680bl_probe()
112 return PTR_ERR(bd); in hp680bl_probe()
114 platform_set_drvdata(pdev, bd); in hp680bl_probe()
116 bd->props.brightness = HP680_DEFAULT_INTENSITY; in hp680bl_probe()
117 hp680bl_send_intensity(bd); in hp680bl_probe()
124 struct backlight_device *bd = platform_get_drvdata(pdev); in hp680bl_remove() local
126 bd->props.brightness = 0; in hp680bl_remove()
127 bd->props.power = 0; in hp680bl_remove()
128 hp680bl_send_intensity(bd); in hp680bl_remove()