| def9c8b7 | 10-Oct-2024 |
Linus Walleij <linus.walleij@linaro.org> |
leds: bcm63138: Add some register defines
The Power LUT (Look-up Table) register base was missing, also add the bit define for sending serial LED data in reverse order, and use the BIT() macro to de
leds: bcm63138: Add some register defines
The Power LUT (Look-up Table) register base was missing, also add the bit define for sending serial LED data in reverse order, and use the BIT() macro to define the bits in the control register.
Signed-off-by: Linus Walleij <linus.walleij@linaro.org> Reviewed-by: Florian Fainelli <florian.fainelli@broadcom.com> Link: https://lore.kernel.org/r/20241010-bcm63138-leds-v4-4-cdb80780a555@linaro.org Signed-off-by: Lee Jones <lee@kernel.org>
show more ...
|
| 5f312fda | 10-Oct-2024 |
Linus Walleij <linus.walleij@linaro.org> |
leds: bcm63138: Handle shift register config
This adds code to optionally read the width of the shift register chain from the device tree and use it to set up the register controlling the shifter ha
leds: bcm63138: Handle shift register config
This adds code to optionally read the width of the shift register chain from the device tree and use it to set up the register controlling the shifter hardware.
If the property is not present, the boot-time default is used so existing device trees keep working as this is what they assume.
Signed-off-by: Linus Walleij <linus.walleij@linaro.org> Reviewed-by: Florian Fainelli <florian.fainelli@broadcom.com> Link: https://lore.kernel.org/r/20241010-bcm63138-leds-v4-3-cdb80780a555@linaro.org Signed-off-by: Lee Jones <lee@kernel.org>
show more ...
|
| 92cfc71e | 17-Jul-2022 |
Rafał Miłecki <rafal@milecki.pl> |
leds: leds-bcm63138: get rid of LED_OFF
The whole "enum led_brightness" is marked as obsolete. Replace it with a (non-)zero check.
Reported-by: Pavel Machek <pavel@ucw.cz> Signed-off-by: Rafał Miłe
leds: leds-bcm63138: get rid of LED_OFF
The whole "enum led_brightness" is marked as obsolete. Replace it with a (non-)zero check.
Reported-by: Pavel Machek <pavel@ucw.cz> Signed-off-by: Rafał Miłecki <rafal@milecki.pl> Signed-off-by: Pavel Machek <pavel@ucw.cz>
show more ...
|
| 3dd34dfb | 29-May-2021 |
Andy Shevchenko <andy.shevchenko@gmail.com> |
leds: lgm-sso: Convert to use list_for_each_entry*() API
Convert to use list_for_each_entry*() API insted of open coded variants. It saves few lines of code and makes iteasier to read and maintain.
leds: lgm-sso: Convert to use list_for_each_entry*() API
Convert to use list_for_each_entry*() API insted of open coded variants. It saves few lines of code and makes iteasier to read and maintain.
Signed-off-by: Andy Shevchenko <andy.shevchenko@gmail.com> Signed-off-by: Pavel Machek <pavel@ucw.cz>
show more ...
|
| c31ef700 | 29-May-2021 |
Andy Shevchenko <andy.shevchenko@gmail.com> |
leds: lgm-sso: Remove explicit managed GPIO resource cleanup
The idea of managed resources is that they will be cleaned up automatically and in the proper order. Remove explicit GPIO cleanup.
Signe
leds: lgm-sso: Remove explicit managed GPIO resource cleanup
The idea of managed resources is that they will be cleaned up automatically and in the proper order. Remove explicit GPIO cleanup.
Signed-off-by: Andy Shevchenko <andy.shevchenko@gmail.com> Signed-off-by: Pavel Machek <pavel@ucw.cz>
show more ...
|
| 1ed4d05e | 29-May-2021 |
Andy Shevchenko <andy.shevchenko@gmail.com> |
leds: lgm-sso: Don't spam logs when probe is deferred
When requesting GPIO line the probe can be deferred. In such case don't spam logs with an error message. This can be achieved by switching to de
leds: lgm-sso: Don't spam logs when probe is deferred
When requesting GPIO line the probe can be deferred. In such case don't spam logs with an error message. This can be achieved by switching to dev_err_probe().
Fixes: c3987cd2bca3 ("leds: lgm: Add LED controller driver for LGM SoC") Cc: Amireddy Mallikarjuna reddy <mallikarjunax.reddy@linux.intel.com> Signed-off-by: Andy Shevchenko <andy.shevchenko@gmail.com> Signed-off-by: Pavel Machek <pavel@ucw.cz>
show more ...
|
| f3e2b382 | 10-May-2021 |
Andy Shevchenko <andy.shevchenko@gmail.com> |
leds: lgm-sso: Drop duplicate NULL check for GPIO operations
Since GPIO operations are NULL-aware, we don't need to duplicate this check. Remove it and fold the rest of the code.
Signed-off-by: And
leds: lgm-sso: Drop duplicate NULL check for GPIO operations
Since GPIO operations are NULL-aware, we don't need to duplicate this check. Remove it and fold the rest of the code.
Signed-off-by: Andy Shevchenko <andy.shevchenko@gmail.com> Signed-off-by: Pavel Machek <pavel@ucw.cz>
show more ...
|
| 2cbbe9c5 | 10-May-2021 |
Andy Shevchenko <andy.shevchenko@gmail.com> |
leds: lgm-sso: Remove unneeded of_match_ptr()
LGM SSO is an OF dependent driver, so of_match_ptr() can be safely removed.
Remove the unneeded of_match_ptr().
Signed-off-by: Andy Shevchenko <andy.s
leds: lgm-sso: Remove unneeded of_match_ptr()
LGM SSO is an OF dependent driver, so of_match_ptr() can be safely removed.
Remove the unneeded of_match_ptr().
Signed-off-by: Andy Shevchenko <andy.shevchenko@gmail.com> Signed-off-by: Pavel Machek <pavel@ucw.cz>
show more ...
|