[PATCH 10/31] media: radio: changing LED_* from enum led_brightness to actual value

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The enum led_brightness, which contains the declaration of LED_OFF,
LED_ON, LED_HALF and LED_FULL is obsolete, as the led class now supports
max_brightness.
---
 drivers/media/radio/radio-shark.c  | 6 +++---
 drivers/media/radio/radio-shark2.c | 4 ++--
 2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/drivers/media/radio/radio-shark.c b/drivers/media/radio/radio-shark.c
index 8230da828d0e..7998b75df525 100644
--- a/drivers/media/radio/radio-shark.c
+++ b/drivers/media/radio/radio-shark.c
@@ -217,19 +217,19 @@ static void shark_led_set_red(struct led_classdev *led_cdev,
 static const struct led_classdev shark_led_templates[NO_LEDS] = {
 	[BLUE_LED] = {
 		.name		= "%s:blue:",
-		.brightness	= LED_OFF,
+		.brightness	= 0,
 		.max_brightness = 127,
 		.brightness_set = shark_led_set_blue,
 	},
 	[BLUE_PULSE_LED] = {
 		.name		= "%s:blue-pulse:",
-		.brightness	= LED_OFF,
+		.brightness	= 0,
 		.max_brightness = 255,
 		.brightness_set = shark_led_set_blue_pulse,
 	},
 	[RED_LED] = {
 		.name		= "%s:red:",
-		.brightness	= LED_OFF,
+		.brightness	= 0,
 		.max_brightness = 1,
 		.brightness_set = shark_led_set_red,
 	},
diff --git a/drivers/media/radio/radio-shark2.c b/drivers/media/radio/radio-shark2.c
index d150f12382c6..776877a294d8 100644
--- a/drivers/media/radio/radio-shark2.c
+++ b/drivers/media/radio/radio-shark2.c
@@ -189,13 +189,13 @@ static void shark_led_set_red(struct led_classdev *led_cdev,
 static const struct led_classdev shark_led_templates[NO_LEDS] = {
 	[BLUE_LED] = {
 		.name		= "%s:blue:",
-		.brightness	= LED_OFF,
+		.brightness	= 0,
 		.max_brightness = 127,
 		.brightness_set = shark_led_set_blue,
 	},
 	[RED_LED] = {
 		.name		= "%s:red:",
-		.brightness	= LED_OFF,
+		.brightness	= 0,
 		.max_brightness = 1,
 		.brightness_set = shark_led_set_red,
 	},
-- 
2.34.1




[Index of Archives]     [Linux Input]     [Video for Linux]     [Gstreamer Embedded]     [Mplayer Users]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]

  Powered by Linux