11 #include <linux/device.h>
12 #include <linux/kernel.h>
14 #include <linux/slab.h>
20 #include <linux/module.h>
45 { 0x13, 0x0070, 200 },
96 static void lms283gf05_reset(
unsigned long gpio,
bool inverted)
112 for (i = 0; i < sz; i++) {
116 spi_write(spi, buf, 3);
119 buf[1] = seq[
i].
value >> 8;
120 buf[2] = seq[
i].
value & 0xff;
121 spi_write(spi, buf, 3);
127 static int lms283gf05_power_set(
struct lcd_device *
ld,
int power)
137 lms283gf05_toggle(spi, disp_initseq,
ARRAY_SIZE(disp_initseq));
139 lms283gf05_toggle(spi, disp_pdwnseq,
ARRAY_SIZE(disp_pdwnseq));
148 static struct lcd_ops lms_ops = {
149 .set_power = lms283gf05_power_set,
175 dev_err(&spi->
dev,
"No memory for device state\n");
191 lms283gf05_toggle(spi, disp_initseq,
ARRAY_SIZE(disp_initseq));
205 static struct spi_driver lms283gf05_driver = {
207 .name =
"lms283gf05",
210 .probe = lms283gf05_probe,