Searched refs:num_subleds (Results 1 – 2 of 2) sorted by relevance
| /drivers/leds/ |
| A D | leds-cros_ec.c | 124 int num_subleds = 0; in cros_ec_led_count_subleds() local 133 num_subleds++; in cros_ec_led_count_subleds() 145 if (!num_subleds) in cros_ec_led_count_subleds() 149 return num_subleds; in cros_ec_led_count_subleds() 171 int i, ret, num_subleds; in cros_ec_led_probe_one() local 188 num_subleds = cros_ec_led_count_subleds(dev, &arg.resp, in cros_ec_led_probe_one() 190 if (num_subleds < 0) in cros_ec_led_probe_one() 191 return num_subleds; in cros_ec_led_probe_one() 196 subleds = devm_kcalloc(dev, num_subleds, sizeof(*subleds), GFP_KERNEL); in cros_ec_led_probe_one() 212 priv->led_mc_cdev.num_colors = num_subleds; in cros_ec_led_probe_one()
|
| /drivers/leds/rgb/ |
| A D | leds-ncp5623.c | 160 unsigned int num_subleds; in ncp5623_probe() local 175 num_subleds = fwnode_get_child_node_count(mc_node); in ncp5623_probe() 177 subled_info = devm_kcalloc(dev, num_subleds, sizeof(*subled_info), GFP_KERNEL); in ncp5623_probe()
|
Completed in 4 milliseconds