Searched refs:num_subleds (Results 1 – 2 of 2) sorted by relevance
/linux-6.12.1/drivers/leds/ |
D | leds-cros_ec.c | 137 int num_subleds = 0; in cros_ec_led_count_subleds() local 146 num_subleds++; in cros_ec_led_count_subleds() 158 if (!num_subleds) in cros_ec_led_count_subleds() 162 return num_subleds; in cros_ec_led_count_subleds() 184 int i, ret, num_subleds; in cros_ec_led_probe_one() local 201 num_subleds = cros_ec_led_count_subleds(dev, &arg.resp, in cros_ec_led_probe_one() 203 if (num_subleds < 0) in cros_ec_led_probe_one() 204 return num_subleds; in cros_ec_led_probe_one() 209 subleds = devm_kcalloc(dev, num_subleds, sizeof(*subleds), GFP_KERNEL); in cros_ec_led_probe_one() 225 priv->led_mc_cdev.num_colors = num_subleds; in cros_ec_led_probe_one()
|
/linux-6.12.1/drivers/leds/rgb/ |
D | leds-ncp5623.c | 158 int num_subleds = 0; in ncp5623_probe() local 176 num_subleds++; in ncp5623_probe() 178 subled_info = devm_kcalloc(dev, num_subleds, sizeof(*subled_info), GFP_KERNEL); in ncp5623_probe()
|