linux/drivers/leds/leds-lm36274.c

// SPDX-License-Identifier: GPL-2.0
// TI LM36274 LED chip family driver
// Copyright (C) 2019 Texas Instruments Incorporated - https://www.ti.com/

#include <linux/bitops.h>
#include <linux/device.h>
#include <linux/err.h>
#include <linux/leds.h>
#include <linux/leds-ti-lmu-common.h>
#include <linux/mod_devicetable.h>
#include <linux/module.h>
#include <linux/platform_device.h>
#include <linux/property.h>

#include <linux/mfd/ti-lmu.h>
#include <linux/mfd/ti-lmu-register.h>

#include <uapi/linux/uleds.h>

#define LM36274_MAX_STRINGS
#define LM36274_BL_EN

/**
 * struct lm36274
 * @pdev: platform device
 * @led_dev: led class device
 * @lmu_data: Register and setting values for common code
 * @regmap: Devices register map
 * @dev: Pointer to the devices device struct
 * @led_sources: The LED strings supported in this array
 * @num_leds: Number of LED strings are supported in this array
 */
struct lm36274 {};

static int lm36274_brightness_set(struct led_classdev *led_cdev,
				  enum led_brightness brt_val)
{}

static int lm36274_init(struct lm36274 *chip)
{}

static int lm36274_parse_dt(struct lm36274 *chip,
			    struct led_init_data *init_data)
{}

static int lm36274_probe(struct platform_device *pdev)
{}

static const struct of_device_id of_lm36274_leds_match[] =;
MODULE_DEVICE_TABLE(of, of_lm36274_leds_match);

static struct platform_driver lm36274_driver =;
module_platform_driver()

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