Searched refs:num_leds (Results 1 - 20 of 20) sorted by relevance

/drivers/leds/
H A Dleds-gpio-register.c31 if (!pdata->num_leds)
35 pdata->num_leds * sizeof(*pdata->leds), GFP_KERNEL);
H A Dleds-gpio.c154 int num_leds; member in struct:gpio_leds_priv
158 static inline int sizeof_gpio_leds_priv(int num_leds) argument
161 (sizeof(struct gpio_led_data) * num_leds);
209 ret = create_gpio_led(&led, &priv->leds[priv->num_leds++],
220 for (count = priv->num_leds - 2; count >= 0; count--)
244 if (pdata && pdata->num_leds) {
246 sizeof_gpio_leds_priv(pdata->num_leds),
251 priv->num_leds = pdata->num_leds;
252 for (i = 0; i < priv->num_leds;
[all...]
H A Dleds-ns2.c263 int num_leds = 0; local
266 num_leds = of_get_child_count(np);
267 if (!num_leds)
270 leds = devm_kzalloc(dev, num_leds * sizeof(struct ns2_led),
298 pdata->num_leds = num_leds;
310 int num_leds; member in struct:ns2_led_priv
314 static inline int sizeof_ns2_led_priv(int num_leds) argument
317 (sizeof(struct ns2_led_data) * num_leds);
345 sizeof_ns2_led_priv(pdata->num_leds), GFP_KERNE
[all...]
H A Dleds-pwm.c38 int num_leds; member in struct:led_pwm_priv
84 static inline size_t sizeof_pwm_leds_priv(int num_leds) argument
87 (sizeof(struct led_pwm_data) * num_leds);
92 while (priv->num_leds--) {
93 led_classdev_unregister(&priv->leds[priv->num_leds].cdev);
94 if (priv->leds[priv->num_leds].can_sleep)
95 cancel_work_sync(&priv->leds[priv->num_leds].work);
102 struct led_pwm_data *led_data = &priv->leds[priv->num_leds];
137 priv->num_leds++;
182 count = pdata->num_leds;
[all...]
H A Dleds-mc13783.c44 int num_leds; member in struct:mc13xxx_leds
149 pdata->num_leds = of_get_child_count(parent);
151 pdata->led = devm_kzalloc(dev, pdata->num_leds * sizeof(*pdata->led),
175 pdata->num_leds = i;
217 leds->num_leds = pdata->num_leds;
219 if ((leds->num_leds < 1) ||
220 (leds->num_leds > (devtype->led_max - devtype->led_min + 1))) {
221 dev_err(dev, "Invalid LED count %d\n", leds->num_leds);
225 leds->led = devm_kzalloc(dev, leds->num_leds * sizeo
[all...]
H A Dleds-pca9532.c25 /* m = num_leds*/
36 u8 num_leds; member in struct:pca9532_chip_info
76 .num_leds = 2,
79 .num_leds = 8,
82 .num_leds = 16,
85 .num_leds = 4,
108 for (i = 0; i < data->chip_info->num_leds; i++) {
132 u8 maxleds = data->chip_info->num_leds;
148 u8 maxleds = data->chip_info->num_leds;
228 u8 maxleds = data->chip_info->num_leds;
[all...]
H A Dleds-lt3593.c145 sizeof(struct lt3593_led_data) * pdata->num_leds,
150 for (i = 0; i < pdata->num_leds; i++) {
176 for (i = 0; i < pdata->num_leds; i++)
H A Dleds-adp5520.c115 if (pdata->num_leds > ADP5520_01_MAXLEDS) {
121 led = devm_kzalloc(&pdev->dev, sizeof(*led) * pdata->num_leds,
132 for (i = 0; i < pdata->num_leds; ++i) {
193 for (i = 0; i < pdata->num_leds; i++) {
H A Dleds-da9052.c127 sizeof(struct da9052_led) * pled->num_leds,
134 for (i = 0; i < pled->num_leds; i++) {
189 for (i = 0; i < pled->num_leds; i++) {
H A Dleds-pca963x.c311 pdata->leds.num_leds = chip->n_leds;
363 if (pdata && (pdata->leds.num_leds < 1 ||
364 pdata->leds.num_leds > chip->n_leds)) {
395 if (pdata && i < pdata->leds.num_leds) {
404 if (!pdata || i >= pdata->leds.num_leds ||
H A Dleds-netxbig.c360 sizeof(struct netxbig_led_data) * pdata->num_leds, GFP_KERNEL);
368 for (i = 0; i < pdata->num_leds; i++) {
394 for (i = 0; i < pdata->num_leds; i++)
H A Dleds-lp55xx-common.h143 * @num_leds : Number of registered LEDs
154 int num_leds; member in struct:lp55xx_chip
H A Dleds-pca955x.c288 if (pdata->num_leds != chip->bits) {
291 pdata->num_leds, chip->bits);
H A Dleds-lp55xx-common.c486 chip->num_leds++;
507 for (i = 0; i < chip->num_leds; i++) {
H A Dleds-tca6507.c727 pdata->leds.num_leds = NUM_LEDS;
763 if (!pdata || pdata->leds.num_leds != NUM_LEDS) {
/drivers/mfd/
H A Dlm3533-core.c443 if (!pdata->leds || pdata->num_leds == 0)
446 if (pdata->num_leds > ARRAY_SIZE(lm3533_led_devs))
447 pdata->num_leds = ARRAY_SIZE(lm3533_led_devs);
449 for (i = 0; i < pdata->num_leds; ++i) {
455 pdata->num_leds, NULL, 0, NULL);
H A Ddm355evm_msp.c288 .num_leds = ARRAY_SIZE(evm_leds),
H A D88pm860x-core.c780 if (pdata->num_leds > ARRAY_SIZE(led_devs))
781 pdata->num_leds = ARRAY_SIZE(led_devs);
782 for (i = 0; i < pdata->num_leds; i++) {
/drivers/video/backlight/
H A Dadp8860_bl.c226 led = devm_kzalloc(&client->dev, sizeof(*led) * pdata->num_leds,
242 for (i = 0; i < pdata->num_leds; ++i) {
306 for (i = 0; i < pdata->num_leds; i++) {
747 if (pdata->num_leds)
H A Dadp8870_bl.c249 led = devm_kzalloc(&client->dev, pdata->num_leds * sizeof(*led),
268 for (i = 0; i < pdata->num_leds; ++i) {
332 for (i = 0; i < pdata->num_leds; i++) {
922 if (pdata->num_leds)

Completed in 621 milliseconds