/drivers/leds/ |
H A D | Makefile | 8 obj-$(CONFIG_LEDS_88PM860X) += leds-88pm860x.o 9 obj-$(CONFIG_LEDS_BD2802) += leds-bd2802.o 10 obj-$(CONFIG_LEDS_LOCOMO) += leds-locomo.o 11 obj-$(CONFIG_LEDS_LM3530) += leds-lm3530.o 12 obj-$(CONFIG_LEDS_LM3533) += leds-lm3533.o 13 obj-$(CONFIG_LEDS_LM3642) += leds-lm3642.o 14 obj-$(CONFIG_LEDS_MIKROTIK_RB532) += leds-rb532.o 15 obj-$(CONFIG_LEDS_S3C24XX) += leds-s3c24xx.o 16 obj-$(CONFIG_LEDS_NET48XX) += leds-net48xx.o 17 obj-$(CONFIG_LEDS_WRAP) += leds [all...] |
H A D | leds-gpio-register.c | 10 #include <linux/leds.h> 18 * Makes a copy of pdata and pdata->leds and registers a new leds-gpio device 19 * with the result. This allows to have pdata and pdata-leds in .init.rodata 34 _pdata.leds = kmemdup(pdata->leds, 35 pdata->num_leds * sizeof(*pdata->leds), GFP_KERNEL); 36 if (!_pdata.leds) 39 ret = platform_device_register_resndata(NULL, "leds-gpio", id, 42 kfree(_pdata.leds); [all...] |
H A D | leds-mc13783.c | 6 * Based on leds-da903x: 21 #include <linux/leds.h> 38 struct mc13xxx_leds *leds; member in struct:mc13xxx_led 61 struct mc13xxx_leds *leds = led->leds; local 108 mc13xxx_reg_rmw(leds->master, leds->devtype->ledctrl_base + reg, 127 struct mc13xxx_leds *leds = platform_get_drvdata(pdev); local 139 parent = of_find_node_by_name(dev->parent->of_node, "leds"); 145 leds 198 struct mc13xxx_leds *leds; local 285 struct mc13xxx_leds *leds = platform_get_drvdata(pdev); local [all...] |
H A D | leds-menf21bmc.c | 19 #include <linux/leds.h> 35 static struct menf21bmc_led leds[] = { variable in typeref:struct:menf21bmc_led 86 for (i = 0; i < ARRAY_SIZE(leds); i++) { 87 leds[i].cdev.name = leds[i].name; 88 leds[i].cdev.brightness_set = menf21bmc_led_set; 89 leds[i].i2c_client = i2c_client; 90 ret = led_classdev_register(&pdev->dev, &leds[i].cdev); 102 led_classdev_unregister(&leds[i].cdev); 111 for (i = 0; i < ARRAY_SIZE(leds); [all...] |
H A D | leds-ot200.c | 2 * Bachmann ot200 leds driver. 13 #include <linux/leds.h> 26 * The device has three leds on the back panel (led_err, led_init and led_run) 27 * and can handle up to seven leds on the front panel. 30 static struct ot200_led leds[] = { variable in typeref:struct:ot200_led 122 for (i = 0; i < ARRAY_SIZE(leds); i++) { 124 leds[i].cdev.name = leds[i].name; 125 leds[i].cdev.brightness_set = ot200_led_brightness_set; 127 ret = led_classdev_register(&pdev->dev, &leds[ [all...] |
H A D | leds-dac124s085.c | 12 #include <linux/leds.h> 33 struct dac124s085_led leds[4]; member in struct:dac124s085 78 for (i = 0; i < ARRAY_SIZE(dac->leds); i++) { 79 led = dac->leds + i; 102 led_classdev_unregister(&dac->leds[i].ldev); 112 for (i = 0; i < ARRAY_SIZE(dac->leds); i++) { 113 led_classdev_unregister(&dac->leds[i].ldev); 114 cancel_work_sync(&dac->leds[i].work);
|
H A D | leds-pca963x.c | 8 * Based on leds-pca955x.c 17 * Note that hardware blinking violates the leds infrastructure driver 32 #include <linux/leds.h> 38 #include <linux/platform_data/leds-pca963x.h> 110 struct pca963x_led *leds; member in struct:pca963x 310 pdata->leds.leds = pca963x_leds; 311 pdata->leds.num_leds = chip->n_leds; 363 if (pdata && (pdata->leds.num_leds < 1 || 364 pdata->leds [all...] |
H A D | leds-pca955x.c | 47 #include <linux/leds.h> 106 struct pca955x_led *leds; member in struct:pca955x 280 dev_info(&client->dev, "leds-pca955x: Using %s %d-bit LED driver at " 300 pca955x->leds = devm_kzalloc(&client->dev, 302 if (!pca955x->leds) 312 pca955x_led = &pca955x->leds[i]; 318 if (pdata->leds[i].name) 321 pdata->leds[i].name); 322 if (pdata->leds[i].default_trigger) 324 pdata->leds[ [all...] |
H A D | leds-tca6507.c | 2 * leds-tca6507 49 * first-served basis. Access can be shared by multiple leds if they 58 * Max at '2', then other leds will have to choose between '2' and 92 #include <linux/leds.h> 97 #include <linux/leds-tca6507.h> 188 } leds[NUM_LEDS]; member in struct:tca6507_chip 637 if (pdata->leds.leds[i].name && pdata->leds.leds[ [all...] |
H A D | leds-ns2.c | 2 * leds-ns2.c - Driver for the Network Space v2 (and parents) dual-GPIO LED 8 * Based on leds-gpio.c by Raphael Assenat <raph@8d.com> 29 #include <linux/leds.h> 31 #include <linux/platform_data/leds-kirkwood-ns2.h> 262 struct ns2_led *leds; local 270 leds = devm_kzalloc(dev, num_leds * sizeof(struct ns2_led), 272 if (!leds) 282 leds[i].cmd = ret; 286 leds[i].slow = ret; 288 leds[ [all...] |
H A D | leds-lp3944.c | 2 * leds-lp3944.c - driver for National Semiconductor LP3944 Funlight Chip 16 * This helper chip can drive up to 8 leds, with two programmable DIM modes; 20 * The DIM modes are used to set _blink_ patterns for leds, the pattern is 26 * leds, the camera flash light and the displays backlights. 32 #include <linux/leds.h> 35 #include <linux/leds-lp3944.h> 48 /* These registers are not used to control leds in LP3944, they can store 80 struct lp3944_led_data leds[LP3944_LEDS_MAX]; member in struct:lp3944_data 241 /* Special case: the leds subsystem requires a default user 254 /* invert duty cycle for inverted leds, thi [all...] |
H A D | leds-gpio.c | 16 #include <linux/leds.h> 102 /* skip leds that aren't available */ 155 struct gpio_led_data leds[]; member in struct:gpio_leds_priv 209 ret = create_gpio_led(&led, &priv->leds[priv->num_leds++], 221 delete_gpio_led(&priv->leds[count]); 226 { .compatible = "gpio-leds", }, 253 ret = create_gpio_led(&pdata->leds[i], 254 &priv->leds[i], 259 delete_gpio_led(&priv->leds[i]); 280 delete_gpio_led(&priv->leds[ [all...] |
H A D | leds-pca9532.c | 18 #include <linux/leds.h> 22 #include <linux/leds-pca9532.h> 41 struct pca9532_led leds[16]; member in struct:pca9532_data 91 .name = "leds-pca953x", 98 /* We have two pwm/blinkers, but 16 possible leds to drive. Additionally, 101 * leds that are not ON/OFF. 109 if (data->leds[i].type == PCA9532_TYPE_LED && 110 data->leds[i].state == PCA9532_PWM0+pwm) { 112 b += data->leds[i].ldev.brightness; 249 struct pca9532_led *led = &data->leds[offse [all...] |
H A D | leds-pwm.c | 2 * linux/drivers/leds-pwm.c 8 * based on leds-gpio.c by Raphael Assenat <raph@8d.com> 20 #include <linux/leds.h> 39 struct led_pwm_data leds[0]; member in struct:led_pwm_priv 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]; 196 ret = led_pwm_add(&pdev->dev, priv, &pdata->leds[i], 225 { .compatible = "pwm-leds", }, [all...] |
/drivers/net/wireless/ath/carl9170/ |
H A D | led.c | 78 if (ar->leds[i].registered) { 79 if (ar->leds[i].last_state || 80 ar->leds[i].toggled) { 82 if (ar->leds[i].toggled) 83 tmp = 70 + 200 / (ar->leds[i].toggled); 89 ar->leds[i].toggled = 0; 129 snprintf(ar->leds[i].name, sizeof(ar->leds[i].name), 132 ar->leds[i].ar = ar; 133 ar->leds[ [all...] |
/drivers/net/wireless/b43/ |
H A D | leds.c | 30 #include "leds.h" 90 struct b43_leds *leds = container_of(work, struct b43_leds, work); local 91 struct b43_wl *wl = container_of(leds, struct b43_wl, leds); 99 b43_led_update(dev, &wl->leds.led_tx); 100 b43_led_update(dev, &wl->leds.led_rx); 101 b43_led_update(dev, &wl->leds.led_radio); 102 b43_led_update(dev, &wl->leds.led_assoc); 115 if (likely(!wl->leds.stop)) { 117 ieee80211_queue_work(wl->hw, &wl->leds 320 struct b43_leds *leds = &dev->wl->leds; local 330 struct b43_leds *leds = &dev->wl->leds; local 353 struct b43_leds *leds = &wl->leds; local [all...] |
/drivers/net/wireless/rtl818x/rtl8187/ |
H A D | Makefile | 1 rtl8187-objs := dev.o rtl8225.o leds.o rfkill.o
|
H A D | leds.h | 2 * Definitions for RTL8187 leds 21 #include <linux/leds.h>
|
/drivers/net/wireless/p54/ |
H A D | led.c | 24 #include <linux/leds.h> 41 for (i = 0; i < ARRAY_SIZE(priv->leds); i++) 42 if (priv->leds[i].toggled) { 45 tmp = 70 + 200 / (priv->leds[i].toggled); 49 if (priv->leds[i].led_dev.brightness == LED_OFF) 52 priv->leds[i].toggled = 53 !!priv->leds[i].led_dev.brightness; 88 struct p54_led_dev *led = &priv->leds[led_index]; 152 for (i = 0; i < ARRAY_SIZE(priv->leds); i++) { 153 if (priv->leds[ [all...] |
/drivers/leds/trigger/ |
H A D | ledtrig-default-on.c | 17 #include <linux/leds.h> 18 #include "../leds.h"
|
H A D | ledtrig-ide-disk.c | 17 #include <linux/leds.h>
|
/drivers/net/wireless/b43legacy/ |
H A D | leds.h | 9 #include <linux/leds.h>
|
H A D | Makefile | 11 b43legacy-$(CONFIG_B43LEGACY_LEDS) += leds.o
|
/drivers/isdn/hisax/ |
H A D | st5481_b.c | 149 u_char leds = adapter->leds; local 157 leds |= GREEN_LED; 159 leds &= ~GREEN_LED; 162 st5481_usb_device_ctrl_msg(adapter, GPIO_OUT, leds, NULL, NULL); 236 adapter->leds |= B1_LED; 238 adapter->leds |= B2_LED; 250 adapter->leds &= ~B1_LED; 252 adapter->leds &= ~B2_LED; 255 st5481_usb_device_ctrl_msg(adapter, GPIO_OUT, adapter->leds, NUL [all...] |
/drivers/hid/ |
H A D | hid-gt683r.c | 21 #include <linux/leds.h> 151 static int gt683r_leds_set(struct gt683r_led *led, u8 leds) argument 163 buffer[3] = leds; 193 u8 leds = 0; local 201 leds |= BIT(i); 204 if (gt683r_leds_set(led, leds)) 207 if (leds)
|