linux/drivers/mfd/lm3533-ctrlbank.c

// SPDX-License-Identifier: GPL-2.0-or-later
/*
 * lm3533-ctrlbank.c -- LM3533 Generic Control Bank interface
 *
 * Copyright (C) 2011-2012 Texas Instruments
 *
 * Author: Johan Hovold <[email protected]>
 */

#include <linux/device.h>
#include <linux/module.h>

#include <linux/mfd/lm3533.h>


#define LM3533_MAX_CURRENT_MIN
#define LM3533_MAX_CURRENT_MAX
#define LM3533_MAX_CURRENT_STEP

#define LM3533_PWM_MAX

#define LM3533_REG_PWM_BASE
#define LM3533_REG_MAX_CURRENT_BASE
#define LM3533_REG_CTRLBANK_ENABLE
#define LM3533_REG_BRIGHTNESS_BASE


static inline u8 lm3533_ctrlbank_get_reg(struct lm3533_ctrlbank *cb, u8 base)
{}

int lm3533_ctrlbank_enable(struct lm3533_ctrlbank *cb)
{}
EXPORT_SYMBOL_GPL();

int lm3533_ctrlbank_disable(struct lm3533_ctrlbank *cb)
{}
EXPORT_SYMBOL_GPL();

/*
 * Full-scale current.
 *
 * imax		5000 - 29800 uA (800 uA step)
 */
int lm3533_ctrlbank_set_max_current(struct lm3533_ctrlbank *cb, u16 imax)
{}
EXPORT_SYMBOL_GPL();

int lm3533_ctrlbank_set_brightness(struct lm3533_ctrlbank *cb, u8 val)
{}
EXPORT_SYMBOL_GPL();

int lm3533_ctrlbank_get_brightness(struct lm3533_ctrlbank *cb, u8 *val)
{}
EXPORT_SYMBOL_GPL();

/*
 * PWM-input control mask:
 *
 *   bit 5 - PWM-input enabled in Zone 4
 *   bit 4 - PWM-input enabled in Zone 3
 *   bit 3 - PWM-input enabled in Zone 2
 *   bit 2 - PWM-input enabled in Zone 1
 *   bit 1 - PWM-input enabled in Zone 0
 *   bit 0 - PWM-input enabled
 */
int lm3533_ctrlbank_set_pwm(struct lm3533_ctrlbank *cb, u8 val)
{}
EXPORT_SYMBOL_GPL();

int lm3533_ctrlbank_get_pwm(struct lm3533_ctrlbank *cb, u8 *val)
{}
EXPORT_SYMBOL_GPL();

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