#include <linux/backlight.h>
#include <linux/delay.h>
#include <linux/fb.h>
#include <linux/lcd.h>
#include <linux/module.h>
#include <linux/spi/spi.h>
#include <linux/wait.h>
#define COMMAND_ONLY …
#define DATA_ONLY …
struct lms501kf03 { … };
static const unsigned char seq_password[] = …;
static const unsigned char seq_power[] = …;
static const unsigned char seq_display[] = …;
static const unsigned char seq_rgb_if[] = …;
static const unsigned char seq_display_inv[] = …;
static const unsigned char seq_vcom[] = …;
static const unsigned char seq_gate[] = …;
static const unsigned char seq_panel[] = …;
static const unsigned char seq_col_mod[] = …;
static const unsigned char seq_w_gamma[] = …;
static const unsigned char seq_rgb_gamma[] = …;
static const unsigned char seq_sleep_out[] = …;
static const unsigned char seq_display_on[] = …;
static const unsigned char seq_display_off[] = …;
static int lms501kf03_spi_write_byte(struct lms501kf03 *lcd, int addr, int data)
{ … }
static int lms501kf03_spi_write(struct lms501kf03 *lcd, unsigned char address,
unsigned char command)
{ … }
static int lms501kf03_panel_send_sequence(struct lms501kf03 *lcd,
const unsigned char *wbuf,
unsigned int len)
{ … }
static int lms501kf03_ldi_init(struct lms501kf03 *lcd)
{ … }
static int lms501kf03_ldi_enable(struct lms501kf03 *lcd)
{ … }
static int lms501kf03_ldi_disable(struct lms501kf03 *lcd)
{ … }
static int lms501kf03_power_is_on(int power)
{ … }
static int lms501kf03_power_on(struct lms501kf03 *lcd)
{ … }
static int lms501kf03_power_off(struct lms501kf03 *lcd)
{ … }
static int lms501kf03_power(struct lms501kf03 *lcd, int power)
{ … }
static int lms501kf03_get_power(struct lcd_device *ld)
{ … }
static int lms501kf03_set_power(struct lcd_device *ld, int power)
{ … }
static const struct lcd_ops lms501kf03_lcd_ops = …;
static int lms501kf03_probe(struct spi_device *spi)
{ … }
static void lms501kf03_remove(struct spi_device *spi)
{ … }
#ifdef CONFIG_PM_SLEEP
static int lms501kf03_suspend(struct device *dev)
{ … }
static int lms501kf03_resume(struct device *dev)
{ … }
#endif
static SIMPLE_DEV_PM_OPS(lms501kf03_pm_ops, lms501kf03_suspend,
lms501kf03_resume);
static void lms501kf03_shutdown(struct spi_device *spi)
{ … }
static struct spi_driver lms501kf03_driver = …;
module_spi_driver(…) …;
MODULE_AUTHOR(…) …;
MODULE_DESCRIPTION(…) …;
MODULE_LICENSE(…) …;