Lines Matching refs:num_leds
38 int num_leds; member
134 pdata->num_leds = of_get_available_child_count(parent); in mc13xxx_led_probe_dt()
136 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()
202 leds->num_leds = pdata->num_leds; in mc13xxx_led_probe()
204 if ((leds->num_leds < 1) || in mc13xxx_led_probe()
205 (leds->num_leds > (devtype->led_max - devtype->led_min + 1))) { in mc13xxx_led_probe()
206 dev_err(dev, "Invalid LED count %d\n", leds->num_leds); in mc13xxx_led_probe()
210 leds->led = devm_kcalloc(dev, leds->num_leds, sizeof(*leds->led), in mc13xxx_led_probe()
222 for (i = 0; i < leds->num_leds; i++) { in mc13xxx_led_probe()
269 for (i = 0; i < leds->num_leds; i++) in mc13xxx_led_remove()