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