mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2025-08-22 07:01:24 +02:00
arm: exynos: Use proper ADC device name
Since commit 4213609cc7 ("drivers: core: use strcmp when find device by name") one has to provide full name to get requested object. Fix the code used to detect Odroid board revision to use proper ADC device name then. Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com> Reviewed-by: Anand Moon <linux.amoon@gmail.com> Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
This commit is contained in:
parent
a6ee3fe19d
commit
fa06669d01
@ -67,7 +67,7 @@ static int odroid_get_adc_val(unsigned int *adcval)
|
|||||||
unsigned int adcval_prev = 0;
|
unsigned int adcval_prev = 0;
|
||||||
int ret, retries = 20;
|
int ret, retries = 20;
|
||||||
|
|
||||||
ret = adc_channel_single_shot("adc", CONFIG_ODROID_REV_AIN,
|
ret = adc_channel_single_shot("adc@12D10000", CONFIG_ODROID_REV_AIN,
|
||||||
&adcval_prev);
|
&adcval_prev);
|
||||||
if (ret)
|
if (ret)
|
||||||
return ret;
|
return ret;
|
||||||
@ -75,8 +75,8 @@ static int odroid_get_adc_val(unsigned int *adcval)
|
|||||||
while (retries--) {
|
while (retries--) {
|
||||||
mdelay(5);
|
mdelay(5);
|
||||||
|
|
||||||
ret = adc_channel_single_shot("adc", CONFIG_ODROID_REV_AIN,
|
ret = adc_channel_single_shot("adc@12D10000",
|
||||||
adcval);
|
CONFIG_ODROID_REV_AIN, adcval);
|
||||||
if (ret)
|
if (ret)
|
||||||
return ret;
|
return ret;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user