led_dev 294 drivers/hid/hid-wiimote-modules.c static enum led_brightness wiimod_led_get(struct led_classdev *led_dev) led_dev 296 drivers/hid/hid-wiimote-modules.c struct device *dev = led_dev->dev->parent; led_dev 303 drivers/hid/hid-wiimote-modules.c if (wdata->leds[i] == led_dev) { led_dev 314 drivers/hid/hid-wiimote-modules.c static void wiimod_led_set(struct led_classdev *led_dev, led_dev 317 drivers/hid/hid-wiimote-modules.c struct device *dev = led_dev->dev->parent; led_dev 324 drivers/hid/hid-wiimote-modules.c if (wdata->leds[i] == led_dev) { led_dev 49 drivers/input/keyboard/tm2-touchkey.c struct led_classdev led_dev; led_dev 86 drivers/input/keyboard/tm2-touchkey.c static int tm2_touchkey_led_brightness_set(struct led_classdev *led_dev, led_dev 90 drivers/input/keyboard/tm2-touchkey.c container_of(led_dev, struct tm2_touchkey_data, led_dev); led_dev 174 drivers/input/keyboard/tm2-touchkey.c if (touchkey->led_dev.brightness == LED_OFF) led_dev 175 drivers/input/keyboard/tm2-touchkey.c tm2_touchkey_led_brightness_set(&touchkey->led_dev, led_dev 274 drivers/input/keyboard/tm2-touchkey.c touchkey->led_dev.name = TM2_TOUCHKEY_DEV_NAME; led_dev 275 drivers/input/keyboard/tm2-touchkey.c touchkey->led_dev.brightness = LED_ON; led_dev 276 drivers/input/keyboard/tm2-touchkey.c touchkey->led_dev.max_brightness = LED_ON; led_dev 277 drivers/input/keyboard/tm2-touchkey.c touchkey->led_dev.brightness_set_blocking = led_dev 280 drivers/input/keyboard/tm2-touchkey.c error = devm_led_classdev_register(&client->dev, &touchkey->led_dev); led_dev 288 drivers/input/keyboard/tm2-touchkey.c tm2_touchkey_led_brightness_set(&touchkey->led_dev, LED_ON); led_dev 106 drivers/leds/leds-lm3530.c struct led_classdev led_dev; led_dev 198 drivers/leds/leds-lm3530.c dev_err(drvdata->led_dev.dev, "Failed to enable vin:%d\n", ret); led_dev 215 drivers/leds/leds-lm3530.c dev_err(drvdata->led_dev.dev, "Failed to disable vin:%d\n", led_dev 263 drivers/leds/leds-lm3530.c if (brightness > drvdata->led_dev.max_brightness) led_dev 264 drivers/leds/leds-lm3530.c brightness = drvdata->led_dev.max_brightness; led_dev 291 drivers/leds/leds-lm3530.c drvdata->led_dev.max_brightness); led_dev 309 drivers/leds/leds-lm3530.c container_of(led_cdev, struct lm3530_data, led_dev); led_dev 356 drivers/leds/leds-lm3530.c drvdata = container_of(led_cdev, struct lm3530_data, led_dev); led_dev 377 drivers/leds/leds-lm3530.c drvdata = container_of(led_cdev, struct lm3530_data, led_dev); led_dev 441 drivers/leds/leds-lm3530.c drvdata->led_dev.name = LM3530_LED_DEV; led_dev 442 drivers/leds/leds-lm3530.c drvdata->led_dev.brightness_set = lm3530_brightness_set; led_dev 443 drivers/leds/leds-lm3530.c drvdata->led_dev.max_brightness = MAX_BRIGHTNESS; led_dev 444 drivers/leds/leds-lm3530.c drvdata->led_dev.groups = lm3530_groups; led_dev 464 drivers/leds/leds-lm3530.c err = led_classdev_register(&client->dev, &drvdata->led_dev); led_dev 478 drivers/leds/leds-lm3530.c led_classdev_unregister(&drvdata->led_dev); led_dev 134 drivers/leds/leds-lm3532.c struct led_classdev led_dev; led_dev 351 drivers/leds/leds-lm3532.c container_of(led_cdev, struct lm3532_led, led_dev); led_dev 640 drivers/leds/leds-lm3532.c &led->led_dev.default_trigger); led_dev 651 drivers/leds/leds-lm3532.c led->led_dev.name = led->label; led_dev 652 drivers/leds/leds-lm3532.c led->led_dev.brightness_set_blocking = lm3532_brightness_set; led_dev 654 drivers/leds/leds-lm3532.c ret = devm_led_classdev_register(priv->dev, &led->led_dev); led_dev 34 drivers/leds/leds-lm36274.c struct led_classdev led_dev; led_dev 46 drivers/leds/leds-lm36274.c struct lm36274 *led = container_of(led_cdev, struct lm36274, led_dev); led_dev 106 drivers/leds/leds-lm36274.c &lm36274_data->led_dev.default_trigger); led_dev 115 drivers/leds/leds-lm36274.c lm36274_data->led_dev.name = label; led_dev 116 drivers/leds/leds-lm36274.c lm36274_data->led_dev.max_brightness = MAX_BRIGHTNESS_11BIT; led_dev 117 drivers/leds/leds-lm36274.c lm36274_data->led_dev.brightness_set_blocking = lm36274_brightness_set; led_dev 151 drivers/leds/leds-lm36274.c &lm36274_data->led_dev); led_dev 111 drivers/leds/leds-lm3692x.c struct led_classdev led_dev; led_dev 169 drivers/leds/leds-lm3692x.c container_of(led_cdev, struct lm3692x_led, led_dev); led_dev 357 drivers/leds/leds-lm3692x.c &led->led_dev.default_trigger); led_dev 369 drivers/leds/leds-lm3692x.c ret = devm_led_classdev_register_ext(&led->client->dev, &led->led_dev, led_dev 391 drivers/leds/leds-lm3692x.c led->led_dev.brightness_set_blocking = lm3692x_brightness_set; led_dev 54 drivers/leds/leds-lm3697.c struct led_classdev led_dev; led_dev 116 drivers/leds/leds-lm3697.c led_dev); led_dev 272 drivers/leds/leds-lm3697.c &led->led_dev.default_trigger); led_dev 283 drivers/leds/leds-lm3697.c led->led_dev.name = led->label; led_dev 284 drivers/leds/leds-lm3697.c led->led_dev.max_brightness = led->lmu_data.max_brightness; led_dev 285 drivers/leds/leds-lm3697.c led->led_dev.brightness_set_blocking = lm3697_brightness_set; led_dev 287 drivers/leds/leds-lm3697.c ret = devm_led_classdev_register(priv->dev, &led->led_dev); led_dev 25 drivers/leds/leds-lp8788.c struct led_classdev led_dev; led_dev 92 drivers/leds/leds-lp8788.c container_of(led_cdev, struct lp8788_led, led_dev); led_dev 133 drivers/leds/leds-lp8788.c led->led_dev.max_brightness = MAX_BRIGHTNESS; led_dev 134 drivers/leds/leds-lp8788.c led->led_dev.brightness_set_blocking = lp8788_brightness_set; led_dev 139 drivers/leds/leds-lp8788.c led->led_dev.name = DEFAULT_LED_NAME; led_dev 141 drivers/leds/leds-lp8788.c led->led_dev.name = led_pdata->name; led_dev 151 drivers/leds/leds-lp8788.c ret = devm_led_classdev_register(dev, &led->led_dev); led_dev 100 drivers/leds/leds-lp8860.c struct led_classdev led_dev; led_dev 209 drivers/leds/leds-lp8860.c container_of(led_cdev, struct lp8860_led, led_dev); led_dev 395 drivers/leds/leds-lp8860.c led->led_dev.default_trigger = of_get_property(child_node, led_dev 412 drivers/leds/leds-lp8860.c led->led_dev.brightness_set_blocking = lp8860_brightness_set; led_dev 442 drivers/leds/leds-lp8860.c ret = devm_led_classdev_register_ext(&client->dev, &led->led_dev, led_dev 853 drivers/media/rc/redrat3.c static void redrat3_brightness_set(struct led_classdev *led_dev, enum led_dev 856 drivers/media/rc/redrat3.c struct redrat3_dev *rr3 = container_of(led_dev, struct redrat3_dev, led_dev 43 drivers/media/rc/ttusbir.c static enum led_brightness ttusbir_brightness_get(struct led_classdev *led_dev) led_dev 45 drivers/media/rc/ttusbir.c struct ttusbir *tt = container_of(led_dev, struct ttusbir, led); led_dev 68 drivers/media/rc/ttusbir.c static void ttusbir_brightness_set(struct led_classdev *led_dev, enum led_dev 71 drivers/media/rc/ttusbir.c struct ttusbir *tt = container_of(led_dev, struct ttusbir, led); led_dev 1183 drivers/net/wireless/ath/ath5k/ath5k.h struct led_classdev led_dev; /* led classdev */ led_dev 113 drivers/net/wireless/ath/ath5k/led.c ath5k_led_brightness_set(struct led_classdev *led_dev, led_dev 116 drivers/net/wireless/ath/ath5k/led.c struct ath5k_led *led = container_of(led_dev, struct ath5k_led, led_dev 117 drivers/net/wireless/ath/ath5k/led.c led_dev); led_dev 134 drivers/net/wireless/ath/ath5k/led.c led->led_dev.name = led->name; led_dev 135 drivers/net/wireless/ath/ath5k/led.c led->led_dev.default_trigger = trigger; led_dev 136 drivers/net/wireless/ath/ath5k/led.c led->led_dev.brightness_set = ath5k_led_brightness_set; led_dev 138 drivers/net/wireless/ath/ath5k/led.c err = led_classdev_register(ah->dev, &led->led_dev); led_dev 151 drivers/net/wireless/ath/ath5k/led.c led_classdev_unregister(&led->led_dev); led_dev 96 drivers/net/wireless/broadcom/b43/leds.c static void b43_led_brightness_set(struct led_classdev *led_dev, led_dev 99 drivers/net/wireless/broadcom/b43/leds.c struct b43_led *led = container_of(led_dev, struct b43_led, led_dev); led_dev 124 drivers/net/wireless/broadcom/b43/leds.c led->led_dev.name = led->name; led_dev 125 drivers/net/wireless/broadcom/b43/leds.c led->led_dev.default_trigger = default_trigger; led_dev 126 drivers/net/wireless/broadcom/b43/leds.c led->led_dev.brightness_set = b43_led_brightness_set; led_dev 128 drivers/net/wireless/broadcom/b43/leds.c err = led_classdev_register(dev->dev->dev, &led->led_dev); led_dev 142 drivers/net/wireless/broadcom/b43/leds.c led_classdev_unregister(&led->led_dev); led_dev 20 drivers/net/wireless/broadcom/b43/leds.h struct led_classdev led_dev; led_dev 56 drivers/net/wireless/broadcom/b43legacy/leds.c static void b43legacy_led_brightness_set(struct led_classdev *led_dev, led_dev 59 drivers/net/wireless/broadcom/b43legacy/leds.c struct b43legacy_led *led = container_of(led_dev, struct b43legacy_led, led_dev 60 drivers/net/wireless/broadcom/b43legacy/leds.c led_dev); led_dev 93 drivers/net/wireless/broadcom/b43legacy/leds.c led->led_dev.name = led->name; led_dev 94 drivers/net/wireless/broadcom/b43legacy/leds.c led->led_dev.default_trigger = default_trigger; led_dev 95 drivers/net/wireless/broadcom/b43legacy/leds.c led->led_dev.brightness_set = b43legacy_led_brightness_set; led_dev 97 drivers/net/wireless/broadcom/b43legacy/leds.c err = led_classdev_register(dev->dev->dev, &led->led_dev); led_dev 110 drivers/net/wireless/broadcom/b43legacy/leds.c led_classdev_unregister(&led->led_dev); led_dev 18 drivers/net/wireless/broadcom/b43legacy/leds.h struct led_classdev led_dev; led_dev 36 drivers/net/wireless/broadcom/brcm80211/brcmsmac/led.c static void brcms_led_brightness_set(struct led_classdev *led_dev, led_dev 39 drivers/net/wireless/broadcom/brcm80211/brcmsmac/led.c struct brcms_info *wl = container_of(led_dev, led_dev 40 drivers/net/wireless/broadcom/brcm80211/brcmsmac/led.c struct brcms_info, led_dev); led_dev 46 drivers/net/wireless/broadcom/brcm80211/brcmsmac/led.c if (wl->led_dev.dev) led_dev 47 drivers/net/wireless/broadcom/brcm80211/brcmsmac/led.c led_classdev_unregister(&wl->led_dev); led_dev 108 drivers/net/wireless/broadcom/brcm80211/brcmsmac/led.c wl->led_dev.name = wl->radio_led.name; led_dev 109 drivers/net/wireless/broadcom/brcm80211/brcmsmac/led.c wl->led_dev.default_trigger = led_dev 111 drivers/net/wireless/broadcom/brcm80211/brcmsmac/led.c wl->led_dev.brightness_set = brcms_led_brightness_set; led_dev 112 drivers/net/wireless/broadcom/brcm80211/brcmsmac/led.c err = led_classdev_register(wiphy_dev(wl->wiphy), &wl->led_dev); led_dev 87 drivers/net/wireless/broadcom/brcm80211/brcmsmac/mac80211_if.h struct led_classdev led_dev; led_dev 46 drivers/net/wireless/intersil/p54/led.c if (priv->leds[i].led_dev.brightness == LED_OFF) led_dev 50 drivers/net/wireless/intersil/p54/led.c !!priv->leds[i].led_dev.brightness; led_dev 64 drivers/net/wireless/intersil/p54/led.c static void p54_led_brightness_set(struct led_classdev *led_dev, led_dev 67 drivers/net/wireless/intersil/p54/led.c struct p54_led_dev *led = container_of(led_dev, struct p54_led_dev, led_dev 68 drivers/net/wireless/intersil/p54/led.c led_dev); led_dev 95 drivers/net/wireless/intersil/p54/led.c led->led_dev.name = led->name; led_dev 96 drivers/net/wireless/intersil/p54/led.c led->led_dev.default_trigger = trigger; led_dev 97 drivers/net/wireless/intersil/p54/led.c led->led_dev.brightness_set = p54_led_brightness_set; led_dev 99 drivers/net/wireless/intersil/p54/led.c err = led_classdev_register(wiphy_dev(priv->hw->wiphy), &led->led_dev); led_dev 153 drivers/net/wireless/intersil/p54/led.c led_classdev_unregister(&priv->leds[i].led_dev); led_dev 148 drivers/net/wireless/intersil/p54/p54.h struct led_classdev led_dev; led_dev 206 drivers/net/wireless/ralink/rt2x00/rt2400pci.c container_of(led_cdev, struct rt2x00_led, led_dev); led_dev 225 drivers/net/wireless/ralink/rt2x00/rt2400pci.c container_of(led_cdev, struct rt2x00_led, led_dev); led_dev 242 drivers/net/wireless/ralink/rt2x00/rt2400pci.c led->led_dev.brightness_set = rt2400pci_brightness_set; led_dev 243 drivers/net/wireless/ralink/rt2x00/rt2400pci.c led->led_dev.blink_set = rt2400pci_blink_set; led_dev 206 drivers/net/wireless/ralink/rt2x00/rt2500pci.c container_of(led_cdev, struct rt2x00_led, led_dev); led_dev 225 drivers/net/wireless/ralink/rt2x00/rt2500pci.c container_of(led_cdev, struct rt2x00_led, led_dev); led_dev 242 drivers/net/wireless/ralink/rt2x00/rt2500pci.c led->led_dev.brightness_set = rt2500pci_brightness_set; led_dev 243 drivers/net/wireless/ralink/rt2x00/rt2500pci.c led->led_dev.blink_set = rt2500pci_blink_set; led_dev 269 drivers/net/wireless/ralink/rt2x00/rt2500usb.c container_of(led_cdev, struct rt2x00_led, led_dev); led_dev 288 drivers/net/wireless/ralink/rt2x00/rt2500usb.c container_of(led_cdev, struct rt2x00_led, led_dev); led_dev 305 drivers/net/wireless/ralink/rt2x00/rt2500usb.c led->led_dev.brightness_set = rt2500usb_brightness_set; led_dev 306 drivers/net/wireless/ralink/rt2x00/rt2500usb.c led->led_dev.blink_set = rt2500usb_blink_set; led_dev 1510 drivers/net/wireless/ralink/rt2x00/rt2800lib.c container_of(led_cdev, struct rt2x00_led, led_dev); led_dev 1571 drivers/net/wireless/ralink/rt2x00/rt2800lib.c led->led_dev.brightness_set = rt2800_brightness_set; led_dev 56 drivers/net/wireless/ralink/rt2x00/rt2x00leds.c if (brightness != led->led_dev.brightness) { led_dev 57 drivers/net/wireless/ralink/rt2x00/rt2x00leds.c led->led_dev.brightness_set(&led->led_dev, brightness); led_dev 58 drivers/net/wireless/ralink/rt2x00/rt2x00leds.c led->led_dev.brightness = brightness; led_dev 69 drivers/net/wireless/ralink/rt2x00/rt2x00leds.c led->led_dev.brightness_set(&led->led_dev, brightness); led_dev 70 drivers/net/wireless/ralink/rt2x00/rt2x00leds.c led->led_dev.brightness = brightness; led_dev 98 drivers/net/wireless/ralink/rt2x00/rt2x00leds.c led->led_dev.name = name; led_dev 99 drivers/net/wireless/ralink/rt2x00/rt2x00leds.c led->led_dev.brightness = LED_OFF; led_dev 101 drivers/net/wireless/ralink/rt2x00/rt2x00leds.c retval = led_classdev_register(device, &led->led_dev); led_dev 158 drivers/net/wireless/ralink/rt2x00/rt2x00leds.c if (rt2x00dev->led_radio.led_dev.blink_set) { led_dev 161 drivers/net/wireless/ralink/rt2x00/rt2x00leds.c rt2x00dev->led_radio.led_dev.blink_set( led_dev 162 drivers/net/wireless/ralink/rt2x00/rt2x00leds.c &rt2x00dev->led_radio.led_dev, &on_period, &off_period); led_dev 173 drivers/net/wireless/ralink/rt2x00/rt2x00leds.c led_classdev_unregister(&led->led_dev); led_dev 181 drivers/net/wireless/ralink/rt2x00/rt2x00leds.c if (!(led->led_dev.flags & LED_SUSPENDED)) led_dev 182 drivers/net/wireless/ralink/rt2x00/rt2x00leds.c led->led_dev.brightness_set(&led->led_dev, LED_OFF); led_dev 199 drivers/net/wireless/ralink/rt2x00/rt2x00leds.c led_classdev_suspend(&led->led_dev); led_dev 202 drivers/net/wireless/ralink/rt2x00/rt2x00leds.c led->led_dev.brightness_set(&led->led_dev, LED_OFF); led_dev 203 drivers/net/wireless/ralink/rt2x00/rt2x00leds.c led->led_dev.brightness = LED_OFF; led_dev 218 drivers/net/wireless/ralink/rt2x00/rt2x00leds.c led_classdev_resume(&led->led_dev); led_dev 221 drivers/net/wireless/ralink/rt2x00/rt2x00leds.c led->led_dev.brightness_set(&led->led_dev, LED_OFF); led_dev 222 drivers/net/wireless/ralink/rt2x00/rt2x00leds.c led->led_dev.brightness = LED_OFF; led_dev 25 drivers/net/wireless/ralink/rt2x00/rt2x00leds.h struct led_classdev led_dev; led_dev 244 drivers/net/wireless/ralink/rt2x00/rt61pci.c container_of(led_cdev, struct rt2x00_led, led_dev); led_dev 283 drivers/net/wireless/ralink/rt2x00/rt61pci.c container_of(led_cdev, struct rt2x00_led, led_dev); led_dev 300 drivers/net/wireless/ralink/rt2x00/rt61pci.c led->led_dev.brightness_set = rt61pci_brightness_set; led_dev 301 drivers/net/wireless/ralink/rt2x00/rt61pci.c led->led_dev.blink_set = rt61pci_blink_set; led_dev 189 drivers/net/wireless/ralink/rt2x00/rt73usb.c container_of(led_cdev, struct rt2x00_led, led_dev); led_dev 230 drivers/net/wireless/ralink/rt2x00/rt73usb.c container_of(led_cdev, struct rt2x00_led, led_dev); led_dev 247 drivers/net/wireless/ralink/rt2x00/rt73usb.c led->led_dev.brightness_set = rt73usb_brightness_set; led_dev 248 drivers/net/wireless/ralink/rt2x00/rt73usb.c led->led_dev.blink_set = rt73usb_blink_set; led_dev 99 drivers/net/wireless/realtek/rtl818x/rtl8187/leds.c static void rtl8187_led_brightness_set(struct led_classdev *led_dev, led_dev 102 drivers/net/wireless/realtek/rtl818x/rtl8187/leds.c struct rtl8187_led *led = container_of(led_dev, struct rtl8187_led, led_dev 103 drivers/net/wireless/realtek/rtl818x/rtl8187/leds.c led_dev); led_dev 148 drivers/net/wireless/realtek/rtl818x/rtl8187/leds.c led->led_dev.name = led->name; led_dev 149 drivers/net/wireless/realtek/rtl818x/rtl8187/leds.c led->led_dev.default_trigger = default_trigger; led_dev 150 drivers/net/wireless/realtek/rtl818x/rtl8187/leds.c led->led_dev.brightness_set = rtl8187_led_brightness_set; led_dev 152 drivers/net/wireless/realtek/rtl818x/rtl8187/leds.c err = led_classdev_register(&priv->udev->dev, &led->led_dev); led_dev 166 drivers/net/wireless/realtek/rtl818x/rtl8187/leds.c led_classdev_unregister(&led->led_dev); led_dev 42 drivers/net/wireless/realtek/rtl818x/rtl8187/leds.h struct led_classdev led_dev; led_dev 167 drivers/platform/x86/toshiba_acpi.c struct led_classdev led_dev; led_dev 483 drivers/platform/x86/toshiba_acpi.c struct toshiba_acpi_dev, led_dev); led_dev 502 drivers/platform/x86/toshiba_acpi.c struct toshiba_acpi_dev, led_dev); led_dev 3001 drivers/platform/x86/toshiba_acpi.c led_classdev_unregister(&dev->led_dev); led_dev 3095 drivers/platform/x86/toshiba_acpi.c dev->led_dev.name = "toshiba::illumination"; led_dev 3096 drivers/platform/x86/toshiba_acpi.c dev->led_dev.max_brightness = 1; led_dev 3097 drivers/platform/x86/toshiba_acpi.c dev->led_dev.brightness_set = toshiba_illumination_set; led_dev 3098 drivers/platform/x86/toshiba_acpi.c dev->led_dev.brightness_get = toshiba_illumination_get; led_dev 3099 drivers/platform/x86/toshiba_acpi.c if (!led_classdev_register(&acpi_dev->dev, &dev->led_dev))