linux/drivers/video/backlight/lp8788_bl.c

// SPDX-License-Identifier: GPL-2.0-only
/*
 * TI LP8788 MFD - backlight driver
 *
 * Copyright 2012 Texas Instruments
 *
 * Author: Milo(Woogyom) Kim <[email protected]>
 */

#include <linux/backlight.h>
#include <linux/err.h>
#include <linux/mfd/lp8788.h>
#include <linux/module.h>
#include <linux/platform_device.h>
#include <linux/slab.h>

/* Register address */
#define LP8788_BL_CONFIG
#define LP8788_BL_EN
#define LP8788_BL_PWM_INPUT_EN
#define LP8788_BL_FULLSCALE_SHIFT
#define LP8788_BL_DIM_MODE_SHIFT
#define LP8788_BL_PWM_POLARITY_SHIFT

#define LP8788_BL_BRIGHTNESS

#define LP8788_BL_RAMP
#define LP8788_BL_RAMP_RISE_SHIFT

#define MAX_BRIGHTNESS
#define DEFAULT_BL_NAME

struct lp8788_bl {};

static int lp8788_backlight_configure(struct lp8788_bl *bl)
{}

static int lp8788_bl_update_status(struct backlight_device *bl_dev)
{}

static const struct backlight_ops lp8788_bl_ops =;

static int lp8788_backlight_register(struct lp8788_bl *bl)
{}

static void lp8788_backlight_unregister(struct lp8788_bl *bl)
{}

static ssize_t lp8788_get_bl_ctl_mode(struct device *dev,
				     struct device_attribute *attr, char *buf)
{}

static DEVICE_ATTR(bl_ctl_mode, S_IRUGO, lp8788_get_bl_ctl_mode, NULL);

static struct attribute *lp8788_attributes[] =;

static const struct attribute_group lp8788_attr_group =;

static int lp8788_backlight_probe(struct platform_device *pdev)
{}

static void lp8788_backlight_remove(struct platform_device *pdev)
{}

static struct platform_driver lp8788_bl_driver =;
module_platform_driver();

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