• Home
  • Raw
  • Download

Lines Matching refs:lcd

217 	struct hx8357_data *lcd = lcd_get_data(lcdev);  in hx8357_spi_write_then_read()  local
253 ret = spi_sync(lcd->spi, &msg); in hx8357_spi_write_then_read()
321 struct hx8357_data *lcd = lcd_get_data(lcdev); in hx8357_lcd_reset() local
324 gpio_set_value(lcd->reset, 1); in hx8357_lcd_reset()
326 gpio_set_value(lcd->reset, 0); in hx8357_lcd_reset()
328 gpio_set_value(lcd->reset, 1); in hx8357_lcd_reset()
336 struct hx8357_data *lcd = lcd_get_data(lcdev); in hx8357_lcd_init() local
343 if (lcd->use_im_pins) { in hx8357_lcd_init()
344 gpio_set_value_cansleep(lcd->im_pins[0], 1); in hx8357_lcd_init()
345 gpio_set_value_cansleep(lcd->im_pins[1], 0); in hx8357_lcd_init()
346 gpio_set_value_cansleep(lcd->im_pins[2], 1); in hx8357_lcd_init()
540 struct hx8357_data *lcd = lcd_get_data(lcdev); in hx8357_set_power() local
543 if (POWER_IS_ON(power) && !POWER_IS_ON(lcd->state)) in hx8357_set_power()
545 else if (!POWER_IS_ON(power) && POWER_IS_ON(lcd->state)) in hx8357_set_power()
549 lcd->state = power; in hx8357_set_power()
558 struct hx8357_data *lcd = lcd_get_data(lcdev); in hx8357_get_power() local
560 return lcd->state; in hx8357_get_power()
584 struct hx8357_data *lcd; in hx8357_probe() local
588 lcd = devm_kzalloc(&spi->dev, sizeof(*lcd), GFP_KERNEL); in hx8357_probe()
589 if (!lcd) in hx8357_probe()
598 lcd->spi = spi; in hx8357_probe()
604 lcd->reset = of_get_named_gpio(spi->dev.of_node, "gpios-reset", 0); in hx8357_probe()
605 if (!gpio_is_valid(lcd->reset)) { in hx8357_probe()
610 ret = devm_gpio_request_one(&spi->dev, lcd->reset, in hx8357_probe()
616 lcd->reset, ret); in hx8357_probe()
621 lcd->use_im_pins = 1; in hx8357_probe()
624 lcd->im_pins[i] = of_get_named_gpio(spi->dev.of_node, in hx8357_probe()
626 if (lcd->im_pins[i] == -EPROBE_DEFER) { in hx8357_probe()
630 if (!gpio_is_valid(lcd->im_pins[i])) { in hx8357_probe()
635 ret = devm_gpio_request_one(&spi->dev, lcd->im_pins[i], in hx8357_probe()
640 lcd->im_pins[i], ret); in hx8357_probe()
645 lcd->use_im_pins = 0; in hx8357_probe()
648 lcdev = devm_lcd_device_register(&spi->dev, "mxsfb", &spi->dev, lcd, in hx8357_probe()