summaryrefslogtreecommitdiff
path: root/drivers/leds/leds.h
diff options
context:
space:
mode:
authorAbanoub Sameh <abanoubsameh8@gmail.com>2020-12-11 23:42:08 +0300
committerPavel Machek <pavel@ucw.cz>2021-02-19 13:35:28 +0300
commitaf0bfab907a011e146304d20d81dddce4e4d62d0 (patch)
treeeb0f9ec3d2f49c5ae8ea035f4096b6ae6a79a0b3 /drivers/leds/leds.h
parentd86464527681b72941939258ef68904cae6f8136 (diff)
downloadlinux-af0bfab907a011e146304d20d81dddce4e4d62d0.tar.xz
leds: led-core: Get rid of enum led_brightness
This gets rid of enum led_brightness in the main led files, because it is deprecated, and an unsigned int can be used instead. We can get rid of led_brightness completely and patches can also be supplied for the other drivers' files. Signed-off-by: Abanoub Sameh <abanoubsameh@protonmail.com> Signed-off-by: Pavel Machek <pavel@ucw.cz>
Diffstat (limited to 'drivers/leds/leds.h')
-rw-r--r--drivers/leds/leds.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/leds/leds.h b/drivers/leds/leds.h
index 2d9eb48bbed9..345062ccabda 100644
--- a/drivers/leds/leds.h
+++ b/drivers/leds/leds.h
@@ -19,10 +19,8 @@ static inline int led_get_brightness(struct led_classdev *led_cdev)
void led_init_core(struct led_classdev *led_cdev);
void led_stop_software_blink(struct led_classdev *led_cdev);
-void led_set_brightness_nopm(struct led_classdev *led_cdev,
- enum led_brightness value);
-void led_set_brightness_nosleep(struct led_classdev *led_cdev,
- enum led_brightness value);
+void led_set_brightness_nopm(struct led_classdev *led_cdev, unsigned int value);
+void led_set_brightness_nosleep(struct led_classdev *led_cdev, unsigned int value);
ssize_t led_trigger_read(struct file *filp, struct kobject *kobj,
struct bin_attribute *attr, char *buf,
loff_t pos, size_t count);