Lines Matching refs:ldev
1011 static int picolcd_get_contrast(struct lcd_device *ldev)
1013 struct picolcd_data *data = lcd_get_data(ldev);
1017 static int picolcd_set_contrast(struct lcd_device *ldev, int contrast)
1019 struct picolcd_data *data = lcd_get_data(ldev);
1034 static int picolcd_check_lcd_fb(struct lcd_device *ldev, struct fb_info *fb)
1036 return fb && fb == picolcd_fbinfo((struct picolcd_data *)lcd_get_data(ldev));
1048 struct lcd_device *ldev;
1058 ldev = lcd_device_register(dev_name(dev), dev, data, &picolcd_lcdops);
1059 if (IS_ERR(ldev)) {
1061 return PTR_ERR(ldev);
1063 ldev->props.max_contrast = 0x0ff;
1065 data->lcd = ldev;
1066 picolcd_set_contrast(ldev, 0xe5);
1072 struct lcd_device *ldev = data->lcd;
1075 if (ldev)
1076 lcd_device_unregister(ldev);