diff options
| author | Heiko Schocher <[email protected]> | 2025-01-28 14:52:46 +0100 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2025-02-07 10:53:39 -0600 |
| commit | 592b6f394aeb2c9eec47a70b7b1fc0e5108cfa90 (patch) | |
| tree | 08df741b2dec69ef6133f73117715b6bb87c5833 /test/dm/ofnode.c | |
| parent | 167bc2cd69f50a5fad6f4f95c5c4d969ea0d80c1 (diff) | |
led: add function naming option from linux
in linux we have the option to create the name of a led
optionally through the following properties:
- function
- color
- function-enumerator
This patch adds support for parsing this properties if there
is no label property.
The led name is created in led_post_bind() and we need some
storage place for it. Currently this patch prevents to use
malloc() instead it stores the name in new member :
char name[LED_MAX_NAME_SIZE];
of struct led_uc_plat. While at it append led tests for the
new feature.
Signed-off-by: Heiko Schocher <[email protected]>
Reviewed-by: Tom Rini <[email protected]>
Diffstat (limited to 'test/dm/ofnode.c')
| -rw-r--r-- | test/dm/ofnode.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/dm/ofnode.c b/test/dm/ofnode.c index 4a23a3ca38c..cc8b444ff9a 100644 --- a/test/dm/ofnode.c +++ b/test/dm/ofnode.c @@ -1599,7 +1599,7 @@ static int dm_test_ofnode_delete(struct unit_test_state *uts) ut_assert(!ofnode_valid(node)); ut_assert(!ofnode_valid(ofnode_path("/leds/default_on"))); - ut_asserteq(2, ofnode_get_child_count(ofnode_path("/leds"))); + ut_asserteq(7, ofnode_get_child_count(ofnode_path("/leds"))); return 0; } |
