Skip to contentSkip to conversation

leds: pca955x: Set default trigger state

PATCH New Eddie James 1 participant 1 message Oct 19, 2023 LED

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 leds: pca955x: Set default trigger state

If the LED is set to keep the default state, the blink state needs to be set in the core when the LED device is added so the state is kept in sync.

---
 drivers/leds/leds-pca955x.c | 1 +
 1 file changed, 1 insertion(+)
drivers/leds/leds-pca955x.c +1 -0
index 240a31e813e7..b96f3a6b636e 100644
@@ -708,6 +708,7 @@ static int pca955x_probe(struct i2c_client *client)
 				ls2[reg] = pca955x_ledsel(ls2[reg], bit, PCA955X_LS_LED_ON);
 			else if (pca955x_ledstate(ls2[reg], bit) == PCA955X_LS_BLINK0) {
 				keep_psc0 = true;
+				led->default_trigger = "timer";
 				set_bit(i, &pca955x->active_blink);
 			}
 
Signature · 1 line
2.39.3