Commit 8aa928ac authored by Haojian Zhuang's avatar Haojian Zhuang
Browse files

hikey960: fix the calculation in boardid



Since the type of ADC value is always unsigned int, don't
need to check the value with negative value.
Signed-off-by: default avatarHaojian Zhuang <haojian.zhuang@linaro.org>
parent 101afa02
......@@ -111,9 +111,7 @@ static int adcin_data_remap(unsigned int adcin_value)
{
int ret;
if (adcin_value < HKADC_DATA_GRADE0)
ret = BOARDID_UNKNOWN;
else if (adcin_value < HKADC_DATA_GRADE1)
if (adcin_value < HKADC_DATA_GRADE1)
ret = BOARDID_VALUE0;
else if (adcin_value < HKADC_DATA_GRADE2)
ret = BOARDID_VALUE1;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment