Lines Matching refs:leds
45 #include <linux/leds.h>
52 #include <dt-bindings/leds/leds-pca955x.h>
118 struct pca955x_led *leds;
136 struct pca955x_led *leds;
315 struct pca955x_led *led = &pca955x->leds[offset];
327 struct pca955x_led *led = &pca955x->leds[offset];
344 struct pca955x_led *led = &pca955x->leds[offset];
357 struct pca955x_led *led = &pca955x->leds[offset];
385 pdata->leds = devm_kcalloc(&client->dev,
388 if (!pdata->leds)
404 snprintf(pdata->leds[reg].name, sizeof(pdata->leds[reg].name),
407 pdata->leds[reg].type = PCA955X_TYPE_LED;
408 fwnode_property_read_u32(child, "type", &pdata->leds[reg].type);
410 &pdata->leds[reg].default_trigger);
456 dev_info(&client->dev, "leds-pca955x: Using %s %d-bit LED driver at "
474 pca955x->leds = devm_kcalloc(&client->dev,
476 if (!pca955x->leds)
486 pca955x_led = &pca955x->leds[i];
489 pca955x_led->type = pdata->leds[i].type;
502 if (pdata->leds[i].name[0] == '\0')
503 snprintf(pdata->leds[i].name,
504 sizeof(pdata->leds[i].name), "%d", i);
508 pdata->leds[i].name);
510 if (pdata->leds[i].default_trigger)
512 pdata->leds[i].default_trigger;
581 .name = "leds-pca955x",