linux/drivers/video/backlight/tdo24m.c

// SPDX-License-Identifier: GPL-2.0-only
/*
 * tdo24m - SPI-based drivers for Toppoly TDO24M series LCD panels
 *
 * Copyright (C) 2008 Marvell International Ltd.
 *	Eric Miao <[email protected]>
 */

#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/init.h>
#include <linux/device.h>
#include <linux/spi/spi.h>
#include <linux/spi/tdo24m.h>
#include <linux/fb.h>
#include <linux/lcd.h>
#include <linux/slab.h>

#define POWER_IS_ON(pwr)

#define TDO24M_SPI_BUFF_SIZE
#define MODE_QVGA
#define MODE_VGA

struct tdo24m {};

/* use bit 30, 31 as the indicator of command parameter number */
#define CMD0(x)
#define CMD1(x, x1)
#define CMD2(x, x1, x2)
#define CMD_NULL

static const uint32_t lcd_panel_reset[] =;

static const uint32_t lcd_panel_on[] =;

static const uint32_t lcd_panel_off[] =;

static const uint32_t lcd_vga_pass_through_tdo24m[] =;

static const uint32_t lcd_qvga_pass_through_tdo24m[] =;

static const uint32_t lcd_vga_transfer_tdo24m[] =;

static const uint32_t lcd_qvga_transfer[] =;

static const uint32_t lcd_vga_pass_through_tdo35s[] =;

static const uint32_t lcd_qvga_pass_through_tdo35s[] =;

static const uint32_t lcd_vga_transfer_tdo35s[] =;

static const uint32_t lcd_panel_config[] =;

static int tdo24m_writes(struct tdo24m *lcd, const uint32_t *array)
{}

static int tdo24m_adj_mode(struct tdo24m *lcd, int mode)
{}

static int tdo35s_adj_mode(struct tdo24m *lcd, int mode)
{}

static int tdo24m_power_on(struct tdo24m *lcd)
{}

static int tdo24m_power_off(struct tdo24m *lcd)
{}

static int tdo24m_power(struct tdo24m *lcd, int power)
{}


static int tdo24m_set_power(struct lcd_device *ld, int power)
{}

static int tdo24m_get_power(struct lcd_device *ld)
{}

static int tdo24m_set_mode(struct lcd_device *ld, struct fb_videomode *m)
{}

static const struct lcd_ops tdo24m_ops =;

static int tdo24m_probe(struct spi_device *spi)
{}

static void tdo24m_remove(struct spi_device *spi)
{}

#ifdef CONFIG_PM_SLEEP
static int tdo24m_suspend(struct device *dev)
{}

static int tdo24m_resume(struct device *dev)
{}
#endif

static SIMPLE_DEV_PM_OPS(tdo24m_pm_ops, tdo24m_suspend, tdo24m_resume);

/* Power down all displays on reboot, poweroff or halt */
static void tdo24m_shutdown(struct spi_device *spi)
{}

static struct spi_driver tdo24m_driver =;

module_spi_driver();

MODULE_AUTHOR();
MODULE_DESCRIPTION();
MODULE_LICENSE();
MODULE_ALIAS();