Lines Matching +full:led +full:- +full:green
1 // SPDX-License-Identifier: GPL-2.0-only
4 * h3xxx atmel micro companion support, notification LED subdevice
11 #include <linux/mfd/ipaq-micro.h>
17 #define LED_EN (1 << 4) /* LED ON/OFF 0:off, 1:on */
18 #define LED_AUTOSTOP (1 << 5) /* LED ON/OFF auto stop set 0:disable, 1:enable */
19 #define LED_ALWAYS (1 << 6) /* LED Interrupt Mask 0:No mask, 1:mask */
24 struct ipaq_micro *micro = dev_get_drvdata(led_cdev->dev->parent->parent); in micro_leds_brightness_set()
27 * Byte 0 = LED color: 0 = yellow, 1 = green in micro_leds_brightness_set()
28 * yellow LED is always ~30 blinks per minute in micro_leds_brightness_set()
30 * Byte 2 = green ontime in 1/10 sec (deciseconds) in micro_leds_brightness_set()
33 * Byte 3 = green offtime in 1/10 sec (deciseconds) in micro_leds_brightness_set()
61 struct ipaq_micro *micro = dev_get_drvdata(led_cdev->dev->parent->parent); in micro_leds_blink_set()
64 * Byte 0 = LED color: 0 = yellow, 1 = green in micro_leds_blink_set()
65 * yellow LED is always ~30 blinks per minute in micro_leds_blink_set()
67 * Byte 2 = green ontime in 1/10 sec (deciseconds) in micro_leds_blink_set()
70 * Byte 3 = green offtime in 1/10 sec (deciseconds) in micro_leds_blink_set()
82 return -EINVAL; in micro_leds_blink_set()
102 .name = "led-ipaq-micro",
112 ret = devm_led_classdev_register(&pdev->dev, µ_led); in micro_leds_probe()
114 dev_err(&pdev->dev, "registering led failed: %d\n", ret); in micro_leds_probe()
117 dev_info(&pdev->dev, "iPAQ micro notification LED driver\n"); in micro_leds_probe()
124 .name = "ipaq-micro-leds",
132 MODULE_ALIAS("platform:ipaq-micro-leds");