Commit 141f15c6 authored by Denis Osterland-Heim's avatar Denis Osterland-Heim Committed by Pavel Machek
Browse files

leds: pwm: remove header



The header is only used by leds_pwm.c, so move contents to leds_pwm.c
and remove it.
Apply minor changes suggested by checkpatch.
Remove deprecated and unused pwm_id member.

Suggested-by: default avatarPavel Machek <pavel@ucw.cz>
Signed-off-by: default avatarDenis Osterland-Heim <Denis.Osterland@diehl.com>
Signed-off-by: default avatarPavel Machek <pavel@ucw.cz>
parent dd47a834
Loading
Loading
Loading
Loading
+13 −1
Original line number Diff line number Diff line
@@ -16,9 +16,21 @@
#include <linux/leds.h>
#include <linux/err.h>
#include <linux/pwm.h>
#include <linux/leds_pwm.h>
#include <linux/slab.h>

struct led_pwm {
	const char	*name;
	const char	*default_trigger;
	u8		active_low;
	unsigned int	max_brightness;
	unsigned int	pwm_period_ns;
};

struct led_pwm_platform_data {
	int		num_leds;
	struct led_pwm	*leds;
};

struct led_pwm_data {
	struct led_classdev	cdev;
	struct pwm_device	*pwm;

include/linux/leds_pwm.h

deleted100644 → 0
+0 −22
Original line number Diff line number Diff line
/* SPDX-License-Identifier: GPL-2.0 */
/*
 * PWM LED driver data - see drivers/leds/leds-pwm.c
 */
#ifndef __LINUX_LEDS_PWM_H
#define __LINUX_LEDS_PWM_H

struct led_pwm {
	const char	*name;
	const char	*default_trigger;
	unsigned	pwm_id __deprecated;
	u8 		active_low;
	unsigned 	max_brightness;
	unsigned	pwm_period_ns;
};

struct led_pwm_platform_data {
	int			num_leds;
	struct led_pwm	*leds;
};

#endif