grunt: Tiny fix to board_get_temp
Fix argument to adc_read_channel() to be enum adc_channel.
No change in behavior since this ends up being a different
name for the same value (0/1).
BRANCH=none
TEST=none
@@ -534,7 +534,9 @@ static const struct thermistor_info thermistor_info = {
static int board_get_temp(int idx, int *temp_k)
{
- int mv = adc_read_channel(idx ? NPCX_ADC_CH1 : NPCX_ADC_CH0);
+ /* idx is the sensor index set below in temp_sensors[] */
+ int mv = adc_read_channel(
+ idx ? ADC_TEMP_SENSOR_SOC : ADC_TEMP_SENSOR_CHARGER);
int temp_c;
if (mv < 0)
