diff options
author | Heiner Kallweit <[email protected]> | 2023-12-17 19:46:42 +0100 |
---|---|---|
committer | Lee Jones <[email protected]> | 2023-12-21 16:25:21 +0000 |
commit | 4289e434c46c8cbd32cf8b67fa7689b3d2ca4361 (patch) | |
tree | fcdaa53883b6a12a67faa2edda60545c469656c7 /drivers/fpga/of-fpga-region.c | |
parent | afacb21834bb02785ddb0c3ec197208803b74faa (diff) |
leds: trigger: netdev: Add core support for hw not supporting fallback to LED sw control
If hw doesn't support sw control of the LED and we switch to a mode
not supported by hw, currently we get lots of errors because neither
brigthness_set() nor brithness_set_blocking() is set.
Deal with this by not falling back to sw control, and return
-EOPNOTSUPP to the user. Note that we still store the new mode.
This is needed in case an intermediate unsupported mode is necessary
to switch from one supported mode to another.
Add a comment explaining how a driver for such hw is supposed to behave.
Signed-off-by: Heiner Kallweit <[email protected]>
Reviewed-by: Andrew Lunn <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Lee Jones <[email protected]>
Diffstat (limited to 'drivers/fpga/of-fpga-region.c')
0 files changed, 0 insertions, 0 deletions