Lines Matching refs:crp
157 struct cr_panel *crp; in cr_backlight_probe() local
195 crp = devm_kzalloc(&pdev->dev, sizeof(*crp), GFP_KERNEL); in cr_backlight_probe()
196 if (!crp) { in cr_backlight_probe()
201 crp->cr_backlight_device = bdp; in cr_backlight_probe()
202 crp->cr_lcd_device = ldp; in cr_backlight_probe()
203 crp->cr_backlight_device->props.power = FB_BLANK_UNBLANK; in cr_backlight_probe()
204 crp->cr_backlight_device->props.brightness = 0; in cr_backlight_probe()
205 cr_backlight_set_intensity(crp->cr_backlight_device); in cr_backlight_probe()
206 cr_lcd_set_power(crp->cr_lcd_device, FB_BLANK_UNBLANK); in cr_backlight_probe()
208 platform_set_drvdata(pdev, crp); in cr_backlight_probe()
215 struct cr_panel *crp = platform_get_drvdata(pdev); in cr_backlight_remove() local
217 crp->cr_backlight_device->props.power = FB_BLANK_POWERDOWN; in cr_backlight_remove()
218 crp->cr_backlight_device->props.brightness = 0; in cr_backlight_remove()
219 crp->cr_backlight_device->props.max_brightness = 0; in cr_backlight_remove()
220 cr_backlight_set_intensity(crp->cr_backlight_device); in cr_backlight_remove()
221 cr_lcd_set_power(crp->cr_lcd_device, FB_BLANK_POWERDOWN); in cr_backlight_remove()
235 static struct platform_device *crp; variable
244 crp = platform_device_register_simple("cr_backlight", -1, NULL, 0); in cr_backlight_init()
245 if (IS_ERR(crp)) { in cr_backlight_init()
247 return PTR_ERR(crp); in cr_backlight_init()
257 platform_device_unregister(crp); in cr_backlight_exit()