Lines Matching refs:num_leds
89 int num_leds; member
98 unsigned int num_leds; member
108 [CAP1106] = { .product_id = 0x55, .num_channels = 6, .num_leds = 0 },
109 [CAP1126] = { .product_id = 0x53, .num_channels = 6, .num_leds = 2 },
110 [CAP1188] = { .product_id = 0x50, .num_channels = 8, .num_leds = 8 },
213 if (IS_ENABLED(CONFIG_LEDS_CLASS) && priv->num_leds) in cap11xx_set_sleep()
263 struct cap11xx_priv *priv, int num_leds) in cap11xx_init_leds() argument
270 if (!num_leds || !cnt) in cap11xx_init_leds()
273 if (cnt > num_leds) in cap11xx_init_leds()
307 if (error != 0 || reg >= num_leds) in cap11xx_init_leds()
319 priv->num_leds++; in cap11xx_init_leds()
327 struct cap11xx_priv *priv, int num_leds) in cap11xx_init_leds() argument
453 error = cap11xx_init_leds(dev, priv, cap->num_leds); in cap11xx_i2c_probe()