#include <linux/backlight.h>
#include <linux/delay.h>
#include <linux/lcd.h>
#include <linux/module.h>
#include <linux/spi/spi.h>
#include <linux/wait.h>
#define SLEEPMSEC …
#define ENDDEF …
#define DEFMASK …
#define COMMAND_ONLY …
#define DATA_ONLY …
#define MAX_GAMMA_LEVEL …
#define GAMMA_TABLE_COUNT …
#define MIN_BRIGHTNESS …
#define MAX_BRIGHTNESS …
#define DEFAULT_BRIGHTNESS …
struct ams369fg06 { … };
static const unsigned short seq_display_on[] = …;
static const unsigned short seq_display_off[] = …;
static const unsigned short seq_stand_by_on[] = …;
static const unsigned short seq_stand_by_off[] = …;
static const unsigned short seq_setting[] = …;
static const unsigned int ams369fg06_22_250[] = …;
static const unsigned int ams369fg06_22_200[] = …;
static const unsigned int ams369fg06_22_150[] = …;
static const unsigned int ams369fg06_22_100[] = …;
static const unsigned int ams369fg06_22_50[] = …;
struct ams369fg06_gamma { … };
static struct ams369fg06_gamma gamma_table = …;
static int ams369fg06_spi_write_byte(struct ams369fg06 *lcd, int addr, int data)
{ … }
static int ams369fg06_spi_write(struct ams369fg06 *lcd, unsigned char address,
unsigned char command)
{ … }
static int ams369fg06_panel_send_sequence(struct ams369fg06 *lcd,
const unsigned short *wbuf)
{ … }
static int _ams369fg06_gamma_ctl(struct ams369fg06 *lcd,
const unsigned int *gamma)
{ … }
static int ams369fg06_gamma_ctl(struct ams369fg06 *lcd, int brightness)
{ … }
static int ams369fg06_ldi_init(struct ams369fg06 *lcd)
{ … }
static int ams369fg06_ldi_enable(struct ams369fg06 *lcd)
{ … }
static int ams369fg06_ldi_disable(struct ams369fg06 *lcd)
{ … }
static int ams369fg06_power_is_on(int power)
{ … }
static int ams369fg06_power_on(struct ams369fg06 *lcd)
{ … }
static int ams369fg06_power_off(struct ams369fg06 *lcd)
{ … }
static int ams369fg06_power(struct ams369fg06 *lcd, int power)
{ … }
static int ams369fg06_get_power(struct lcd_device *ld)
{ … }
static int ams369fg06_set_power(struct lcd_device *ld, int power)
{ … }
static int ams369fg06_set_brightness(struct backlight_device *bd)
{ … }
static const struct lcd_ops ams369fg06_lcd_ops = …;
static const struct backlight_ops ams369fg06_backlight_ops = …;
static int ams369fg06_probe(struct spi_device *spi)
{ … }
static void ams369fg06_remove(struct spi_device *spi)
{ … }
#ifdef CONFIG_PM_SLEEP
static int ams369fg06_suspend(struct device *dev)
{ … }
static int ams369fg06_resume(struct device *dev)
{ … }
#endif
static SIMPLE_DEV_PM_OPS(ams369fg06_pm_ops, ams369fg06_suspend,
ams369fg06_resume);
static void ams369fg06_shutdown(struct spi_device *spi)
{ … }
static struct spi_driver ams369fg06_driver = …;
module_spi_driver(…) …;
MODULE_AUTHOR(…) …;
MODULE_DESCRIPTION(…) …;
MODULE_LICENSE(…) …;