mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-28 15:41:40 +00:00
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>
This commit is contained in:
parent
07b5d348a6
commit
9b0e344fa1
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue