Erik Karlsson
c3e0426c36
gryphon-led-module: remove obsolete commented out test code
2025-02-21 17:04:22 +01:00
Erik Karlsson
1605577538
gryphon-led-module: fix error handling
...
The dev_get_drvdata/platform_get_drvdata functions do not return an
error pointer. Use devm_gpiod_get_index to manage GPIO resources. Do
not support obsolete Linux versions. Check the return value of
gpiod_direction_output
2025-02-21 17:04:22 +01:00
Erik Karlsson
3dbc47b54f
gryphon-led-module: turn LED off on system shutdown and module unload
2025-02-12 13:55:21 +01:00
Markus Gothe
cdcc69a881
gryphon-led-module: Improve error handling.
...
For errors to propagte correctly we cannot set
the pointer to NULL.
Change-Id: Ie220f3dbe75b7eeefe2e0080279826c6b99144ef
2023-02-20 15:46:49 +00:00
Markus Gothe
924b54d8d3
grpyhon-led-module: Add ability to read back color
...
To aid remote debugging we want to be able to
read back the set color on the RGB LED. This commit
implements this functionality.
2021-10-01 16:16:32 +00:00
Markus Gothe
cb5c1979e6
gryphon-led-module: add get/set brightness
...
To be able to dim the LED from user-space
we need to export an API. This is done
like we currently do for setting the color,
a file which handles hexadecimal numbers.
Change-Id: I4636d16e24cdae38ccd6b501e41f71ce7012dbad
2021-01-28 17:05:53 +00:00
Markus Gothe
64da6686af
Fix gryphon LED module crash.
...
Update gryphon LED module to work with Linux 4.1
and not to crash when 'gpiod_get_index()' fails.
Change-Id: I27fcbe3ad9dbc755eabdd3f2120544b171b07885
2020-09-14 16:18:01 +02:00
Oussama Ghorbel
3e52019dea
gryphon-led-module: set brightness level to 15
...
This is requested by Genexis
2019-07-23 14:18:41 +02:00
Oussama Ghorbel
47d2fb3113
gryphon-led-module: reduce global brightness
2019-05-22 15:30:08 +02:00
Oussama Ghorbel
9cfe56a4dd
gryphon-led-module: avoid turn off the led in module probe
2019-04-26 17:36:34 +02:00
Oussama Ghorbel
3af26d6f84
gryphon-led-module: reduce verbosity
2019-04-08 17:37:08 +02:00
Oussama Ghorbel
aecd02af65
gryphon-led-module: reduce maximum brightness
2019-04-08 17:37:08 +02:00
Oussama Ghorbel
ab558792a0
gryphon-led-module: modify transmission routine according to SK9822 spec
2019-04-08 17:37:08 +02:00
Oussama Ghorbel
7b0e391f98
gryphon-led-module: fix memory allocation issue
2019-04-05 14:07:43 +02:00
Oussama Ghorbel
b7b48d7815
gryphon-led-module: added driver for RGB led
2019-04-04 08:38:28 +02:00