linux/drivers/leds/leds-lp8501.c

// SPDX-License-Identifier: GPL-2.0-only
/*
 * TI LP8501 9 channel LED Driver
 *
 * Copyright (C) 2013 Texas Instruments
 *
 * Author: Milo(Woogyom) Kim <[email protected]>
 */

#include <linux/delay.h>
#include <linux/firmware.h>
#include <linux/i2c.h>
#include <linux/init.h>
#include <linux/leds.h>
#include <linux/module.h>
#include <linux/mutex.h>
#include <linux/of.h>
#include <linux/platform_data/leds-lp55xx.h>
#include <linux/slab.h>

#include "leds-lp55xx-common.h"

#define LP8501_PAGES_PER_ENGINE
#define LP8501_MAX_LEDS

/* Registers */
#define LP8501_REG_ENABLE
#define LP8501_ENABLE

#define LP8501_REG_OP_MODE

#define LP8501_REG_PWR_CONFIG
#define LP8501_PWR_CONFIG_M

#define LP8501_REG_LED_PWM_BASE

#define LP8501_REG_LED_CURRENT_BASE

#define LP8501_REG_CONFIG
#define LP8501_PWM_PSAVE
#define LP8501_AUTO_INC
#define LP8501_PWR_SAVE
#define LP8501_CP_MODE_MASK
#define LP8501_CP_MODE_SHIFT
#define LP8501_INT_CLK
#define LP8501_DEFAULT_CFG

#define LP8501_REG_STATUS
#define LP8501_ENGINE_BUSY

#define LP8501_REG_RESET
#define LP8501_RESET

#define LP8501_REG_PROG_MEM

static int lp8501_post_init_device(struct lp55xx_chip *chip)
{}

static void lp8501_run_engine(struct lp55xx_chip *chip, bool start)
{}

/* Chip specific configurations */
static struct lp55xx_device_config lp8501_cfg =;

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

static const struct of_device_id of_lp8501_leds_match[] =;

MODULE_DEVICE_TABLE(of, of_lp8501_leds_match);

static struct i2c_driver lp8501_driver =;

module_i2c_driver();

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