Pull backlight updates from Lee Jones: "Core Frameworks - Obtain scale type through sysfs New Functionality: - Provide Device Tree functionality in rave-sp-backlight - Calculate if scale type is (non-)linear in pwm_bl Fix-ups: - Simplify code in lm3630a_bl - Trivial rename/whitespace/typo fixes in lms283gf05 - Remove superfluous NULL check in tosa_lcd - Fix power state initialisation in gpio_backlight - List supported file in MAINTAINERS Bug Fixes: - Kconfig - default to not building unless requested in {LED,BACKLIGHT}_CLASS_DEVICE" * tag 'backlight-next-5.4' of git://git.kernel.org/pub/scm/linux/kernel/git/lee/backlight: backlight: pwm_bl: Set scale type for brightness curves specified in the DT backlight: pwm_bl: Set scale type for CIE 1931 curves backlight: Expose brightness curve type through sysfs MAINTAINERS: Add entry for stable backlight sysfs ABI documentation backlight: gpio-backlight: Correct initial power state handling video: backlight: tosa_lcd: drop check because i2c_unregister_device() is NULL safe video: backlight: Drop default m for {LCD,BACKLIGHT_CLASS_DEVICE} backlight: lms283gf05: Fix a typo in the description passed to 'devm_gpio_request_one()' backlight: lm3630a: Switch to use fwnode_property_count_uXX() backlight: rave-sp: Leave initial state and register with correct device
Showing the changes to include/linux (1 of 11 files). Show all
Unified · Split
| @@ -46,6 +46,12 @@ enum backlight_notification { · 45 unmodified lines | ||
| 46 | 46 | BACKLIGHT_UNREGISTERED, |
| 47 | 47 | }; |
| 48 | 48 | |
| 49 | +enum backlight_scale { | |
| 50 | + BACKLIGHT_SCALE_UNKNOWN = 0, | |
| 51 | + BACKLIGHT_SCALE_LINEAR, | |
| 52 | + BACKLIGHT_SCALE_NON_LINEAR, | |
| 53 | +}; | |
| 54 | + | |
| 49 | 55 | struct backlight_device; |
| 50 | 56 | struct fb_info; |
| 51 | 57 | |
| @@ -80,6 +86,8 @@ struct backlight_properties { · 28 unmodified lines | ||
| 80 | 86 | enum backlight_type type; |
| 81 | 87 | /* Flags used to signal drivers of state changes */ |
| 82 | 88 | unsigned int state; |
| 89 | + /* Type of the brightness scale (linear, non-linear, ...) */ | |
| 90 | + enum backlight_scale scale; | |
| 83 | 91 | |
| 84 | 92 | #define BL_CORE_SUSPENDED (1 << 0) /* backlight is suspended */ |
| 85 | 93 | #define BL_CORE_FBBLANK (1 << 1) /* backlight is under an fb blank event */ |