Lines Matching refs:num_leds
84 int num_leds; member
93 unsigned int num_leds; member
105 [CAP1106] = { .product_id = 0x55, .num_channels = 6, .num_leds = 0, .no_gain = false },
106 [CAP1126] = { .product_id = 0x53, .num_channels = 6, .num_leds = 2, .no_gain = false },
107 [CAP1188] = { .product_id = 0x50, .num_channels = 8, .num_leds = 8, .no_gain = false },
108 [CAP1206] = { .product_id = 0x67, .num_channels = 6, .num_leds = 0, .no_gain = true },
211 if (IS_ENABLED(CONFIG_LEDS_CLASS) && priv->num_leds) in cap11xx_set_sleep()
252 struct cap11xx_priv *priv, int num_leds) in cap11xx_init_leds() argument
259 if (!num_leds || !cnt) in cap11xx_init_leds()
262 if (cnt > num_leds) in cap11xx_init_leds()
296 if (error != 0 || reg >= num_leds) { in cap11xx_init_leds()
310 priv->num_leds++; in cap11xx_init_leds()
318 struct cap11xx_priv *priv, int num_leds) in cap11xx_init_leds() argument
452 error = cap11xx_init_leds(dev, priv, cap->num_leds); in cap11xx_i2c_probe()