Lines Matching refs:led

23 	struct led_classdev *led;  member
33 struct led_classdev *led = _led; in gpio_trig_irq() local
34 struct gpio_trig_data *gpio_data = led->trigger_data; in gpio_trig_irq()
57 led_set_brightness(gpio_data->led, in gpio_trig_work()
60 led_set_brightness(gpio_data->led, LED_FULL); in gpio_trig_work()
62 led_set_brightness(gpio_data->led, LED_OFF); in gpio_trig_work()
69 struct led_classdev *led = dev_get_drvdata(dev); in gpio_trig_brightness_show() local
70 struct gpio_trig_data *gpio_data = led->trigger_data; in gpio_trig_brightness_show()
78 struct led_classdev *led = dev_get_drvdata(dev); in gpio_trig_brightness_store() local
79 struct gpio_trig_data *gpio_data = led->trigger_data; in gpio_trig_brightness_store()
99 struct led_classdev *led = dev_get_drvdata(dev); in gpio_trig_inverted_show() local
100 struct gpio_trig_data *gpio_data = led->trigger_data; in gpio_trig_inverted_show()
108 struct led_classdev *led = dev_get_drvdata(dev); in gpio_trig_inverted_store() local
109 struct gpio_trig_data *gpio_data = led->trigger_data; in gpio_trig_inverted_store()
133 struct led_classdev *led = dev_get_drvdata(dev); in gpio_trig_gpio_show() local
134 struct gpio_trig_data *gpio_data = led->trigger_data; in gpio_trig_gpio_show()
142 struct led_classdev *led = dev_get_drvdata(dev); in gpio_trig_gpio_store() local
143 struct gpio_trig_data *gpio_data = led->trigger_data; in gpio_trig_gpio_store()
159 free_irq(gpio_to_irq(gpio_data->gpio), led); in gpio_trig_gpio_store()
166 | IRQF_TRIGGER_FALLING, "ledtrig-gpio", led); in gpio_trig_gpio_store()
171 free_irq(gpio_to_irq(gpio_data->gpio), led); in gpio_trig_gpio_store()
179 static void gpio_trig_activate(struct led_classdev *led) in gpio_trig_activate() argument
188 ret = device_create_file(led->dev, &dev_attr_gpio); in gpio_trig_activate()
192 ret = device_create_file(led->dev, &dev_attr_inverted); in gpio_trig_activate()
196 ret = device_create_file(led->dev, &dev_attr_desired_brightness); in gpio_trig_activate()
200 gpio_data->led = led; in gpio_trig_activate()
201 led->trigger_data = gpio_data; in gpio_trig_activate()
207 device_remove_file(led->dev, &dev_attr_inverted); in gpio_trig_activate()
210 device_remove_file(led->dev, &dev_attr_gpio); in gpio_trig_activate()
216 static void gpio_trig_deactivate(struct led_classdev *led) in gpio_trig_deactivate() argument
218 struct gpio_trig_data *gpio_data = led->trigger_data; in gpio_trig_deactivate()
221 device_remove_file(led->dev, &dev_attr_gpio); in gpio_trig_deactivate()
222 device_remove_file(led->dev, &dev_attr_inverted); in gpio_trig_deactivate()
223 device_remove_file(led->dev, &dev_attr_desired_brightness); in gpio_trig_deactivate()
226 free_irq(gpio_to_irq(gpio_data->gpio), led); in gpio_trig_deactivate()