Lines Matching refs:num_leds
39 int num_leds; member
136 pdata->num_leds = of_get_available_child_count(parent); in mc13xxx_led_probe_dt()
138 pdata->led = devm_kcalloc(dev, pdata->num_leds, sizeof(*pdata->led), in mc13xxx_led_probe_dt()
160 pdata->num_leds = i; in mc13xxx_led_probe_dt()
200 leds->num_leds = pdata->num_leds; in mc13xxx_led_probe()
202 if ((leds->num_leds < 1) || in mc13xxx_led_probe()
203 (leds->num_leds > (devtype->led_max - devtype->led_min + 1))) { in mc13xxx_led_probe()
204 dev_err(dev, "Invalid LED count %d\n", leds->num_leds); in mc13xxx_led_probe()
208 leds->led = devm_kcalloc(dev, leds->num_leds, sizeof(*leds->led), in mc13xxx_led_probe()
220 for (i = 0; i < leds->num_leds; i++) { in mc13xxx_led_probe()
267 for (i = 0; i < leds->num_leds; i++) in mc13xxx_led_remove()