Commit 033c978
HID: lenovo: Remove lenovo_led_brightness_get()
The led_classdev already contains a cached value of the last set
brightness, the brightness_get callback is only meant for LED drivers
which can read back the actual / current brightness from the hardware.
Since lenovo_led_brightness_get() just returns the last set value
it does not add any functionality, so we can just remove it.
Reviewed-by: Marek Behún <kabel@kernel.org>
Acked-by: Pavel Machek <pavel@ucw.cz>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>1 parent 34348a8 commit 033c978
1 file changed
Lines changed: 0 additions & 18 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
774 | 774 | | |
775 | 775 | | |
776 | 776 | | |
777 | | - | |
778 | | - | |
779 | | - | |
780 | | - | |
781 | | - | |
782 | | - | |
783 | | - | |
784 | | - | |
785 | | - | |
786 | | - | |
787 | | - | |
788 | | - | |
789 | | - | |
790 | | - | |
791 | | - | |
792 | | - | |
793 | 777 | | |
794 | 778 | | |
795 | 779 | | |
| |||
837 | 821 | | |
838 | 822 | | |
839 | 823 | | |
840 | | - | |
841 | 824 | | |
842 | 825 | | |
843 | 826 | | |
| |||
846 | 829 | | |
847 | 830 | | |
848 | 831 | | |
849 | | - | |
850 | 832 | | |
851 | 833 | | |
852 | 834 | | |
| |||
0 commit comments