Lines Matching refs:num_leds
44 int num_leds; member
147 pdata->num_leds = of_get_child_count(parent); in mc13xxx_led_probe_dt()
149 pdata->led = devm_kzalloc(dev, pdata->num_leds * sizeof(*pdata->led), in mc13xxx_led_probe_dt()
173 pdata->num_leds = i; in mc13xxx_led_probe_dt()
215 leds->num_leds = pdata->num_leds; in mc13xxx_led_probe()
217 if ((leds->num_leds < 1) || in mc13xxx_led_probe()
218 (leds->num_leds > (devtype->led_max - devtype->led_min + 1))) { in mc13xxx_led_probe()
219 dev_err(dev, "Invalid LED count %d\n", leds->num_leds); in mc13xxx_led_probe()
223 leds->led = devm_kzalloc(dev, leds->num_leds * sizeof(*leds->led), in mc13xxx_led_probe()
235 for (i = 0; i < leds->num_leds; i++) { in mc13xxx_led_probe()
286 for (i = 0; i < leds->num_leds; i++) { in mc13xxx_led_remove()