Commit 5b3fc99
fbdev: aty128fb: Use backlight helper
Instead of retrieving the backlight brightness in struct
backlight_properties manually, and then checking whether the backlight
should be on at all, use backlight_get_brightness() which does all
this and insulates this from future changes.
Signed-off-by: Stephen Kitt <[email protected]>
Cc: Paul Mackerras <[email protected]>
Cc: Helge Deller <[email protected]>
Cc: [email protected]
Cc: [email protected]
Reviewed-by: Sam Ravnborg <[email protected]>
Reviewed-by: Daniel Thompson <[email protected]>
Signed-off-by: Helge Deller <[email protected]>1 parent b7bfaa7 commit 5b3fc99
1 file changed
+2
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1766 | 1766 | | |
1767 | 1767 | | |
1768 | 1768 | | |
1769 | | - | |
1770 | | - | |
1771 | | - | |
| 1769 | + | |
1772 | 1770 | | |
1773 | 1771 | | |
1774 | | - | |
| 1772 | + | |
1775 | 1773 | | |
1776 | 1774 | | |
1777 | 1775 | | |
| |||
0 commit comments