Lines Matching refs:crp
179 struct cr_panel *crp; in cr_backlight_probe() local
217 crp = devm_kzalloc(&pdev->dev, sizeof(*crp), GFP_KERNEL); in cr_backlight_probe()
218 if (!crp) { in cr_backlight_probe()
223 crp->cr_backlight_device = bdp; in cr_backlight_probe()
224 crp->cr_lcd_device = ldp; in cr_backlight_probe()
225 crp->cr_backlight_device->props.power = FB_BLANK_UNBLANK; in cr_backlight_probe()
226 crp->cr_backlight_device->props.brightness = 0; in cr_backlight_probe()
227 cr_backlight_set_intensity(crp->cr_backlight_device); in cr_backlight_probe()
228 cr_lcd_set_power(crp->cr_lcd_device, FB_BLANK_UNBLANK); in cr_backlight_probe()
230 platform_set_drvdata(pdev, crp); in cr_backlight_probe()
237 struct cr_panel *crp = platform_get_drvdata(pdev); in cr_backlight_remove() local
239 crp->cr_backlight_device->props.power = FB_BLANK_POWERDOWN; in cr_backlight_remove()
240 crp->cr_backlight_device->props.brightness = 0; in cr_backlight_remove()
241 crp->cr_backlight_device->props.max_brightness = 0; in cr_backlight_remove()
242 cr_backlight_set_intensity(crp->cr_backlight_device); in cr_backlight_remove()
243 cr_lcd_set_power(crp->cr_lcd_device, FB_BLANK_POWERDOWN); in cr_backlight_remove()
257 static struct platform_device *crp; variable
266 crp = platform_device_register_simple("cr_backlight", -1, NULL, 0); in cr_backlight_init()
267 if (IS_ERR(crp)) { in cr_backlight_init()
269 return PTR_ERR(crp); in cr_backlight_init()
279 platform_device_unregister(crp); in cr_backlight_exit()