Home
last modified time | relevance | path

Searched refs:leds_data (Results 1 – 5 of 5) sorted by relevance

/linux-2.6.39/drivers/leds/
Dleds-pwm.c54 struct led_pwm_data *leds_data, *led_dat; in led_pwm_probe() local
60 leds_data = kzalloc(sizeof(struct led_pwm_data) * pdata->num_leds, in led_pwm_probe()
62 if (!leds_data) in led_pwm_probe()
67 led_dat = &leds_data[i]; in led_pwm_probe()
94 platform_set_drvdata(pdev, leds_data); in led_pwm_probe()
101 led_classdev_unregister(&leds_data[i].cdev); in led_pwm_probe()
102 pwm_free(leds_data[i].pwm); in led_pwm_probe()
106 kfree(leds_data); in led_pwm_probe()
115 struct led_pwm_data *leds_data; in led_pwm_remove() local
117 leds_data = platform_get_drvdata(pdev); in led_pwm_remove()
[all …]
Dleds-lt3593.c145 struct lt3593_led_data *leds_data; in lt3593_led_probe() local
151 leds_data = kzalloc(sizeof(struct lt3593_led_data) * pdata->num_leds, in lt3593_led_probe()
153 if (!leds_data) in lt3593_led_probe()
157 ret = create_lt3593_led(&pdata->leds[i], &leds_data[i], in lt3593_led_probe()
163 platform_set_drvdata(pdev, leds_data); in lt3593_led_probe()
169 delete_lt3593_led(&leds_data[i]); in lt3593_led_probe()
171 kfree(leds_data); in lt3593_led_probe()
180 struct lt3593_led_data *leds_data; in lt3593_led_remove() local
182 leds_data = platform_get_drvdata(pdev); in lt3593_led_remove()
185 delete_lt3593_led(&leds_data[i]); in lt3593_led_remove()
[all …]
Dleds-ns2.c268 struct ns2_led_data *leds_data; in ns2_led_probe() local
275 leds_data = kzalloc(sizeof(struct ns2_led_data) * in ns2_led_probe()
277 if (!leds_data) in ns2_led_probe()
281 ret = create_ns2_led(pdev, &leds_data[i], &pdata->leds[i]); in ns2_led_probe()
287 platform_set_drvdata(pdev, leds_data); in ns2_led_probe()
293 delete_ns2_led(&leds_data[i]); in ns2_led_probe()
295 kfree(leds_data); in ns2_led_probe()
304 struct ns2_led_data *leds_data; in ns2_led_remove() local
306 leds_data = platform_get_drvdata(pdev); in ns2_led_remove()
309 delete_ns2_led(&leds_data[i]); in ns2_led_remove()
[all …]
Dleds-netxbig.c370 struct netxbig_led_data *leds_data; in netxbig_led_probe() local
377 leds_data = kzalloc(sizeof(struct netxbig_led_data) * pdata->num_leds, in netxbig_led_probe()
379 if (!leds_data) in netxbig_led_probe()
387 ret = create_netxbig_led(pdev, &leds_data[i], &pdata->leds[i]); in netxbig_led_probe()
392 platform_set_drvdata(pdev, leds_data); in netxbig_led_probe()
398 delete_netxbig_led(&leds_data[i]); in netxbig_led_probe()
402 kfree(leds_data); in netxbig_led_probe()
410 struct netxbig_led_data *leds_data; in netxbig_led_remove() local
413 leds_data = platform_get_drvdata(pdev); in netxbig_led_remove()
416 delete_netxbig_led(&leds_data[i]); in netxbig_led_remove()
[all …]
/linux-2.6.39/arch/mips/txx9/rbtx4939/
Dsetup.c214 struct rbtx4939_led_data *leds_data; in rbtx4939_led_probe() local
222 leds_data = kzalloc(sizeof(*leds_data) * RBTX4939_MAX_7SEGLEDS, in rbtx4939_led_probe()
224 if (!leds_data) in rbtx4939_led_probe()
228 struct rbtx4939_led_data *led_dat = &leds_data[i]; in rbtx4939_led_probe()