rockchip: boot_mode: find the saradc device name
authorHugh Cole-Baker <sigmaris@gmail.com>
Sat, 25 Jan 2020 16:19:36 +0000 (16:19 +0000)
committerKever Yang <kever.yang@rock-chips.com>
Wed, 19 Feb 2020 08:45:38 +0000 (16:45 +0800)
commit80b9882a6e666fe7edd7fe3e821ae6e8188fb126
treefb61438e799915c4efe4e27baf19b6e0dacbd15f
parenta30c68945cadc6aada3f05a6864627f3ca9d6bde
rockchip: boot_mode: find the saradc device name

adc_channel_single_shot() requires the full device name e.g.
"saradc@ff100000", which differs between Rockchip SoC's, but they all
share the prefix "saradc"; find the ADC device with this name prefix and
use its full name.

Signed-off-by: Hugh Cole-Baker <sigmaris@gmail.com>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
arch/arm/mach-rockchip/boot_mode.c