Lines Matching full:lcd
7 * Generic platform-device LCD power control interface.
14 #include <linux/lcd.h>
21 struct lcd_device *lcd; member
28 static inline struct platform_lcd *to_our_lcd(struct lcd_device *lcd) in to_our_lcd() argument
30 return lcd_get_data(lcd); in to_our_lcd()
33 static int platform_lcd_get_power(struct lcd_device *lcd) in platform_lcd_get_power() argument
35 struct platform_lcd *plcd = to_our_lcd(lcd); in platform_lcd_get_power()
40 static int platform_lcd_set_power(struct lcd_device *lcd, int power) in platform_lcd_set_power() argument
42 struct platform_lcd *plcd = to_our_lcd(lcd); in platform_lcd_set_power()
54 static int platform_lcd_match(struct lcd_device *lcd, struct fb_info *info) in platform_lcd_match() argument
56 struct platform_lcd *plcd = to_our_lcd(lcd); in platform_lcd_match()
97 plcd->lcd = devm_lcd_device_register(&pdev->dev, dev_name(dev), dev, in platform_lcd_probe()
99 if (IS_ERR(plcd->lcd)) { in platform_lcd_probe()
100 dev_err(dev, "cannot register lcd device\n"); in platform_lcd_probe()
101 return PTR_ERR(plcd->lcd); in platform_lcd_probe()
105 platform_lcd_set_power(plcd->lcd, FB_BLANK_NORMAL); in platform_lcd_probe()
116 platform_lcd_set_power(plcd->lcd, plcd->power); in platform_lcd_suspend()
126 platform_lcd_set_power(plcd->lcd, plcd->power); in platform_lcd_resume()
137 .name = "platform-lcd",
147 MODULE_ALIAS("platform:platform-lcd");