linux/drivers/video/backlight/bd6107.c

// SPDX-License-Identifier: GPL-2.0-only
/*
 * ROHM Semiconductor BD6107 LED Driver
 *
 * Copyright (C) 2013 Ideas on board SPRL
 *
 * Contact: Laurent Pinchart <[email protected]>
 */

#include <linux/backlight.h>
#include <linux/delay.h>
#include <linux/err.h>
#include <linux/fb.h>
#include <linux/gpio/consumer.h>
#include <linux/i2c.h>
#include <linux/module.h>
#include <linux/platform_data/bd6107.h>
#include <linux/slab.h>

#define BD6107_PSCNT1
#define BD6107_PSCNT1_PSCNTREG2
#define BD6107_PSCNT1_PSCNTREG1
#define BD6107_REGVSET
#define BD6107_REGVSET_REG1VSET_2_85V
#define BD6107_REGVSET_REG1VSET_2_80V
#define BD6107_LEDCNT1
#define BD6107_LEDCNT1_LEDONOFF2
#define BD6107_LEDCNT1_LEDONOFF1
#define BD6107_PORTSEL
#define BD6107_PORTSEL_LEDM(n)
#define BD6107_RGB1CNT1
#define BD6107_RGB1CNT2
#define BD6107_RGB1CNT3
#define BD6107_RGB1CNT4
#define BD6107_RGB1CNT5
#define BD6107_RGB1FLM
#define BD6107_RGB2CNT1
#define BD6107_RGB2CNT2
#define BD6107_RGB2CNT3
#define BD6107_RGB2CNT4
#define BD6107_RGB2CNT5
#define BD6107_RGB2FLM
#define BD6107_PSCONT3
#define BD6107_SMMONCNT
#define BD6107_DCDCCNT
#define BD6107_IOSEL
#define BD6107_OUT1
#define BD6107_OUT2
#define BD6107_MASK1
#define BD6107_MASK2
#define BD6107_FACTOR1
#define BD6107_FACTOR2
#define BD6107_CLRFACT1
#define BD6107_CLRFACT2
#define BD6107_STATE1
#define BD6107_LSIVER
#define BD6107_GRPSEL
#define BD6107_LEDCNT2
#define BD6107_LEDCNT3
#define BD6107_MCURRENT
#define BD6107_MAINCNT1
#define BD6107_MAINCNT2
#define BD6107_SLOPECNT
#define BD6107_MSLOPE
#define BD6107_RGBSLOPE
#define BD6107_TEST
#define BD6107_SFTRST
#define BD6107_SFTRSTGD

struct bd6107 {};

static int bd6107_write(struct bd6107 *bd, u8 reg, u8 data)
{}

static int bd6107_backlight_update_status(struct backlight_device *backlight)
{}

static bool bd6107_backlight_controls_device(struct backlight_device *backlight,
					     struct device *display_dev)
{}

static const struct backlight_ops bd6107_backlight_ops =;

static int bd6107_probe(struct i2c_client *client)
{}

static void bd6107_remove(struct i2c_client *client)
{}

static const struct i2c_device_id bd6107_ids[] =;
MODULE_DEVICE_TABLE(i2c, bd6107_ids);

static struct i2c_driver bd6107_driver =;

module_i2c_driver();

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