#
24d124f9 |
| 16-Jul-2024 |
Alexander Hansen <alexander.hansen@9elements.com> |
sysfs: Refactor LED property parsing
Added new test for parsing led description from sysfs.
Since there are some edge cases that can happen, to make sure the parsing happens as expected in all case
sysfs: Refactor LED property parsing
Added new test for parsing led description from sysfs.
Since there are some edge cases that can happen, to make sure the parsing happens as expected in all cases.
The edge cases primarily come from the different led properties that can be present or absent in devicetree. I have tested some combinations thereof and would prefer the label to be generated by led sysfs instead of manually providing the 3-component label.
However for that to work phosphor-led-sysfs must be able to extract the labels components in all cases.
This modifies the behavior slightly but it will stay the same for led names that have 1 or 3 components.
Change-Id: I8def089e4c8dc5d3a341cf6f6b1d6356f5aefe48 Signed-off-by: Alexander Hansen <alexander.hansen@9elements.com>
show more ...
|