Lines Matching full:lcd
7 * Generic platform-device LCD power control interface.
14 #include <linux/lcd.h>
22 struct lcd_device *lcd; member
29 static inline struct platform_lcd *to_our_lcd(struct lcd_device *lcd) in to_our_lcd() argument
31 return lcd_get_data(lcd); in to_our_lcd()
34 static int platform_lcd_get_power(struct lcd_device *lcd) in platform_lcd_get_power() argument
36 struct platform_lcd *plcd = to_our_lcd(lcd); in platform_lcd_get_power()
41 static int platform_lcd_set_power(struct lcd_device *lcd, int power) in platform_lcd_set_power() argument
43 struct platform_lcd *plcd = to_our_lcd(lcd); in platform_lcd_set_power()
55 static int platform_lcd_match(struct lcd_device *lcd, struct fb_info *info) in platform_lcd_match() argument
57 struct platform_lcd *plcd = to_our_lcd(lcd); in platform_lcd_match()
98 plcd->lcd = devm_lcd_device_register(&pdev->dev, dev_name(dev), dev, in platform_lcd_probe()
100 if (IS_ERR(plcd->lcd)) { in platform_lcd_probe()
101 dev_err(dev, "cannot register lcd device\n"); in platform_lcd_probe()
102 return PTR_ERR(plcd->lcd); in platform_lcd_probe()
106 platform_lcd_set_power(plcd->lcd, FB_BLANK_NORMAL); in platform_lcd_probe()
117 platform_lcd_set_power(plcd->lcd, plcd->power); in platform_lcd_suspend()
127 platform_lcd_set_power(plcd->lcd, plcd->power); in platform_lcd_resume()
138 { .compatible = "platform-lcd" },
146 .name = "platform-lcd",
157 MODULE_ALIAS("platform:platform-lcd");