Lines Matching refs:lcd
32 static int lb035q02_write(struct lb035q02_device *lcd, u16 reg, u16 val) in lb035q02_write() argument
60 return spi_sync(lcd->spi, &msg); in lb035q02_write()
63 static int lb035q02_init(struct lb035q02_device *lcd) in lb035q02_init() argument
100 ret = lb035q02_write(lcd, init_data[i].index, in lb035q02_init()
111 struct lb035q02_device *lcd = to_lb035q02_device(panel); in lb035q02_disable() local
113 gpiod_set_value_cansleep(lcd->enable_gpio, 0); in lb035q02_disable()
120 struct lb035q02_device *lcd = to_lb035q02_device(panel); in lb035q02_enable() local
122 gpiod_set_value_cansleep(lcd->enable_gpio, 1); in lb035q02_enable()
178 struct lb035q02_device *lcd; in lb035q02_probe() local
181 lcd = devm_kzalloc(&spi->dev, sizeof(*lcd), GFP_KERNEL); in lb035q02_probe()
182 if (!lcd) in lb035q02_probe()
185 spi_set_drvdata(spi, lcd); in lb035q02_probe()
186 lcd->spi = spi; in lb035q02_probe()
188 lcd->enable_gpio = devm_gpiod_get(&spi->dev, "enable", GPIOD_OUT_LOW); in lb035q02_probe()
189 if (IS_ERR(lcd->enable_gpio)) { in lb035q02_probe()
191 return PTR_ERR(lcd->enable_gpio); in lb035q02_probe()
194 ret = lb035q02_init(lcd); in lb035q02_probe()
198 drm_panel_init(&lcd->panel, &lcd->spi->dev, &lb035q02_funcs, in lb035q02_probe()
201 drm_panel_add(&lcd->panel); in lb035q02_probe()
208 struct lb035q02_device *lcd = spi_get_drvdata(spi); in lb035q02_remove() local
210 drm_panel_remove(&lcd->panel); in lb035q02_remove()
211 drm_panel_disable(&lcd->panel); in lb035q02_remove()