Lines Matching refs:crp
165 struct cr_panel *crp; in cr_backlight_probe() local
203 crp = devm_kzalloc(&pdev->dev, sizeof(*crp), GFP_KERNEL); in cr_backlight_probe()
204 if (!crp) { in cr_backlight_probe()
209 crp->cr_backlight_device = bdp; in cr_backlight_probe()
210 crp->cr_lcd_device = ldp; in cr_backlight_probe()
211 crp->cr_backlight_device->props.power = FB_BLANK_UNBLANK; in cr_backlight_probe()
212 crp->cr_backlight_device->props.brightness = 0; in cr_backlight_probe()
213 cr_backlight_set_intensity(crp->cr_backlight_device); in cr_backlight_probe()
214 cr_lcd_set_power(crp->cr_lcd_device, FB_BLANK_UNBLANK); in cr_backlight_probe()
216 platform_set_drvdata(pdev, crp); in cr_backlight_probe()
223 struct cr_panel *crp = platform_get_drvdata(pdev); in cr_backlight_remove() local
225 crp->cr_backlight_device->props.power = FB_BLANK_POWERDOWN; in cr_backlight_remove()
226 crp->cr_backlight_device->props.brightness = 0; in cr_backlight_remove()
227 crp->cr_backlight_device->props.max_brightness = 0; in cr_backlight_remove()
228 cr_backlight_set_intensity(crp->cr_backlight_device); in cr_backlight_remove()
229 cr_lcd_set_power(crp->cr_lcd_device, FB_BLANK_POWERDOWN); in cr_backlight_remove()
243 static struct platform_device *crp; variable
252 crp = platform_device_register_simple("cr_backlight", -1, NULL, 0); in cr_backlight_init()
253 if (IS_ERR(crp)) { in cr_backlight_init()
255 return PTR_ERR(crp); in cr_backlight_init()
265 platform_device_unregister(crp); in cr_backlight_exit()