#include <linux/kernel.h>
#include <linux/leds.h>
#include <linux/mfd/mt6323/registers.h>
#include <linux/mfd/mt6397/core.h>
#include <linux/module.h>
#include <linux/of.h>
#include <linux/platform_device.h>
#include <linux/regmap.h>
#define RG_DRV_32K_CK_PDN …
#define RG_DRV_32K_CK_PDN_MASK …
#define RG_VWLED_1M_CK_PDN …
#define RG_VWLED_32K_CK_PDN …
#define RG_VWLED_6M_CK_PDN …
#define RG_ISINK_CK_PDN(i) …
#define RG_ISINK_CK_PDN_MASK(i) …
#define RG_ISINK_CK_SEL_MASK(i) …
#define ISINK_CON(r, i) …
#define ISINK_DIM_DUTY_MASK …
#define ISINK_DIM_DUTY(i) …
#define ISINK_DIM_FSEL_MASK …
#define ISINK_DIM_FSEL(i) …
#define ISINK_CH_STEP_SHIFT …
#define ISINK_CH_STEP_MASK …
#define ISINK_CH_STEP(i) …
#define ISINK_SFSTR0_TC_MASK …
#define ISINK_SFSTR0_TC(i) …
#define ISINK_SFSTR0_EN_MASK …
#define ISINK_SFSTR0_EN …
#define ISINK_CH_EN_MASK(i) …
#define ISINK_CH_EN(i) …
#define MAX_SUPPORTED_LEDS …
struct mt6323_leds;
struct mt6323_led { … };
struct mt6323_regs { … };
struct mt6323_hwspec { … };
struct mt6323_data { … };
struct mt6323_leds { … };
static int mt6323_led_hw_brightness(struct led_classdev *cdev,
enum led_brightness brightness)
{ … }
static int mt6323_led_hw_off(struct led_classdev *cdev)
{ … }
static enum led_brightness
mt6323_get_led_hw_brightness(struct led_classdev *cdev)
{ … }
static int mt6323_led_hw_on(struct led_classdev *cdev,
enum led_brightness brightness)
{ … }
static int mt6323_led_set_blink(struct led_classdev *cdev,
unsigned long *delay_on,
unsigned long *delay_off)
{ … }
static int mt6323_led_set_brightness(struct led_classdev *cdev,
enum led_brightness brightness)
{ … }
static int mtk_wled_hw_on(struct led_classdev *cdev)
{ … }
static int mtk_wled_hw_off(struct led_classdev *cdev)
{ … }
static enum led_brightness mt6323_get_wled_brightness(struct led_classdev *cdev)
{ … }
static int mt6323_wled_set_brightness(struct led_classdev *cdev,
enum led_brightness brightness)
{ … }
static int mt6323_led_set_dt_default(struct led_classdev *cdev,
struct device_node *np)
{ … }
static int mt6323_led_probe(struct platform_device *pdev)
{ … }
static void mt6323_led_remove(struct platform_device *pdev)
{ … }
static const struct mt6323_regs mt6323_registers = …;
static const struct mt6323_regs mt6331_registers = …;
static const struct mt6323_regs mt6332_registers = …;
static const struct mt6323_hwspec mt6323_spec = …;
static const struct mt6323_hwspec mt6332_spec = …;
static const struct mt6323_data mt6323_pdata = …;
static const struct mt6323_data mt6331_pdata = …;
static const struct mt6323_data mt6332_pdata = …;
static const struct of_device_id mt6323_led_dt_match[] = …;
MODULE_DEVICE_TABLE(of, mt6323_led_dt_match);
static struct platform_driver mt6323_led_driver = …;
module_platform_driver(…) …;
MODULE_DESCRIPTION(…) …;
MODULE_AUTHOR(…) …;
MODULE_LICENSE(…) …;