Loading Documentation/ABI/testing/sysfs-class-led +0 −9 Original line number Diff line number Diff line Loading @@ -59,15 +59,6 @@ Description: brightness. Reading this file when no hw brightness change event has happened will return an ENODATA error. What: /sys/class/leds/<led>/color Date: June 2023 KernelVersion: 6.5 Description: Color of the LED. This is a read-only file. Reading this file returns the color of the LED as a string (e.g: "red", "green", "multicolor"). What: /sys/class/leds/<led>/trigger Date: March 2006 KernelVersion: 2.6.17 Loading drivers/leds/led-class.c +0 −14 Original line number Diff line number Diff line Loading @@ -75,19 +75,6 @@ static ssize_t max_brightness_show(struct device *dev, } static DEVICE_ATTR_RO(max_brightness); static ssize_t color_show(struct device *dev, struct device_attribute *attr, char *buf) { const char *color_text = "invalid"; struct led_classdev *led_cdev = dev_get_drvdata(dev); if (led_cdev->color < LED_COLOR_ID_MAX) color_text = led_colors[led_cdev->color]; return sysfs_emit(buf, "%s\n", color_text); } static DEVICE_ATTR_RO(color); #ifdef CONFIG_LEDS_TRIGGERS static BIN_ATTR(trigger, 0644, led_trigger_read, led_trigger_write, 0); static struct bin_attribute *led_trigger_bin_attrs[] = { Loading @@ -102,7 +89,6 @@ static const struct attribute_group led_trigger_group = { static struct attribute *led_class_attrs[] = { &dev_attr_brightness.attr, &dev_attr_max_brightness.attr, &dev_attr_color.attr, NULL, }; Loading Loading
Documentation/ABI/testing/sysfs-class-led +0 −9 Original line number Diff line number Diff line Loading @@ -59,15 +59,6 @@ Description: brightness. Reading this file when no hw brightness change event has happened will return an ENODATA error. What: /sys/class/leds/<led>/color Date: June 2023 KernelVersion: 6.5 Description: Color of the LED. This is a read-only file. Reading this file returns the color of the LED as a string (e.g: "red", "green", "multicolor"). What: /sys/class/leds/<led>/trigger Date: March 2006 KernelVersion: 2.6.17 Loading
drivers/leds/led-class.c +0 −14 Original line number Diff line number Diff line Loading @@ -75,19 +75,6 @@ static ssize_t max_brightness_show(struct device *dev, } static DEVICE_ATTR_RO(max_brightness); static ssize_t color_show(struct device *dev, struct device_attribute *attr, char *buf) { const char *color_text = "invalid"; struct led_classdev *led_cdev = dev_get_drvdata(dev); if (led_cdev->color < LED_COLOR_ID_MAX) color_text = led_colors[led_cdev->color]; return sysfs_emit(buf, "%s\n", color_text); } static DEVICE_ATTR_RO(color); #ifdef CONFIG_LEDS_TRIGGERS static BIN_ATTR(trigger, 0644, led_trigger_read, led_trigger_write, 0); static struct bin_attribute *led_trigger_bin_attrs[] = { Loading @@ -102,7 +89,6 @@ static const struct attribute_group led_trigger_group = { static struct attribute *led_class_attrs[] = { &dev_attr_brightness.attr, &dev_attr_max_brightness.attr, &dev_attr_color.attr, NULL, }; Loading