linux/drivers/video/backlight/ltv350qv.c

// SPDX-License-Identifier: GPL-2.0-only
/*
 * Power control for Samsung LTV350QV Quarter VGA LCD Panel
 *
 * Copyright (C) 2006, 2007 Atmel Corporation
 */
#include <linux/delay.h>
#include <linux/err.h>
#include <linux/fb.h>
#include <linux/init.h>
#include <linux/lcd.h>
#include <linux/module.h>
#include <linux/slab.h>
#include <linux/spi/spi.h>

#include "ltv350qv.h"

#define POWER_IS_ON(pwr)

struct ltv350qv {};

/*
 * The power-on and power-off sequences are taken from the
 * LTV350QV-F04 data sheet from Samsung. The register definitions are
 * taken from the S6F2002 command list also from Samsung.
 *
 * There's still some voodoo going on here, but it's a lot better than
 * in the first incarnation of the driver where all we had was the raw
 * numbers from the initialization sequence.
 */
static int ltv350qv_write_reg(struct ltv350qv *lcd, u8 reg, u16 val)
{}

/* The comments are taken straight from the data sheet */
static int ltv350qv_power_on(struct ltv350qv *lcd)
{}

static int ltv350qv_power_off(struct ltv350qv *lcd)
{}

static int ltv350qv_power(struct ltv350qv *lcd, int power)
{}

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

static int ltv350qv_get_power(struct lcd_device *ld)
{}

static const struct lcd_ops ltv_ops =;

static int ltv350qv_probe(struct spi_device *spi)
{}

static void ltv350qv_remove(struct spi_device *spi)
{}

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

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

static SIMPLE_DEV_PM_OPS(ltv350qv_pm_ops, ltv350qv_suspend, ltv350qv_resume);

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

static struct spi_driver ltv350qv_driver =;

module_spi_driver();

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