diff options
author | John Keeping <john@metanate.com> | 2022-07-14 17:09:12 +0300 |
---|---|---|
committer | Kever Yang <kever.yang@rock-chips.com> | 2022-09-04 15:00:38 +0300 |
commit | 9b0e344fa1a88f8b7c14fa289aeb90d86f1dbb71 (patch) | |
tree | 7a04806a8035f37cd2a7ceb5cfe487796d78660c /board | |
parent | 07b5d348a6b0856741eff23b9ed133fe27eab2ad (diff) | |
download | u-boot-9b0e344fa1a88f8b7c14fa289aeb90d86f1dbb71.tar.xz |
rockchip: rk3308: fix rockchip_dnl_key_pressed() on roc-cc
Commit 6aa4fe3912 ("dm: core: Rename and fix uclass_get_by_name_len()")
changed uclass_get_device_by_name() to an exact match when previously it
behaved as a prefix match.
The roc-cc code relied on this prefix match by only specifying part of
the device name. Fix this by using the full name including the address.
Signed-off-by: John Keeping <john@metanate.com>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
Diffstat (limited to 'board')
-rw-r--r-- | board/firefly/firefly-rk3308/roc_cc_rk3308.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/board/firefly/firefly-rk3308/roc_cc_rk3308.c b/board/firefly/firefly-rk3308/roc_cc_rk3308.c index 28dcc2a690..bdf3cc03dc 100644 --- a/board/firefly/firefly-rk3308/roc_cc_rk3308.c +++ b/board/firefly/firefly-rk3308/roc_cc_rk3308.c @@ -70,7 +70,7 @@ int rockchip_dnl_key_pressed(void) { unsigned int val; - if (adc_channel_single_shot("saradc", 1, &val)) { + if (adc_channel_single_shot("saradc@ff1e0000", 1, &val)) { printf("%s read adc key val failed\n", __func__); return false; } |