linux/drivers/leds/leds-pwm.c

// SPDX-License-Identifier: GPL-2.0-only
/*
 * linux/drivers/leds-pwm.c
 *
 * simple PWM based LED control
 *
 * Copyright 2009 Luotao Fu @ Pengutronix ([email protected])
 *
 * based on leds-gpio.c by Raphael Assenat <[email protected]>
 */

#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/platform_device.h>
#include <linux/of.h>
#include <linux/leds.h>
#include <linux/err.h>
#include <linux/pwm.h>
#include <linux/slab.h>
#include "leds.h"

struct led_pwm {};

struct led_pwm_data {};

struct led_pwm_priv {};

static int led_pwm_set(struct led_classdev *led_cdev,
		       enum led_brightness brightness)
{}

__attribute__((nonnull))
static int led_pwm_add(struct device *dev, struct led_pwm_priv *priv,
		       struct led_pwm *led, struct fwnode_handle *fwnode)
{}

static int led_pwm_create_fwnode(struct device *dev, struct led_pwm_priv *priv)
{}

static int led_pwm_probe(struct platform_device *pdev)
{}

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

static struct platform_driver led_pwm_driver =;

module_platform_driver();

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