diff options
Diffstat (limited to 'driver/temp_sensor/ec_adc.c')
-rw-r--r-- | driver/temp_sensor/ec_adc.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/driver/temp_sensor/ec_adc.c b/driver/temp_sensor/ec_adc.c index 196d191e47..ca03cd6c6d 100644 --- a/driver/temp_sensor/ec_adc.c +++ b/driver/temp_sensor/ec_adc.c @@ -1,4 +1,4 @@ -/* Copyright 2015 The Chromium OS Authors. All rights reserved. +/* Copyright 2015 The ChromiumOS Authors * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ @@ -23,15 +23,15 @@ static int get_temp(int idx, int *temp_ptr) if (temp_raw == ADC_READ_ERROR) return EC_ERROR_UNKNOWN; - /* TODO : Need modification here if the result is not 10-bit */ + /* TODO : Need modification here if the result is not 10-bit */ - /* If there is no thermistor calculation function. - * 1. Add adjusting function like thermistor_ncp15wb.c - * 2. Place function here with ifdef - * 3. define it on board.h - */ + /* If there is no thermistor calculation function. + * 1. Add adjusting function like thermistor_ncp15wb.c + * 2. Place function here with ifdef + * 3. define it on board.h + */ #ifdef CONFIG_THERMISTOR_NCP15WB - *temp_ptr = ncp15wb_calculate_temp((uint16_t) temp_raw); + *temp_ptr = ncp15wb_calculate_temp((uint16_t)temp_raw); #else #error "Unknown thermistor for ec_adc" return EC_ERROR_UNKNOWN; @@ -45,7 +45,7 @@ int ec_adc_get_val(int idx, int *temp_ptr) int ret; int temp_c; - if(idx < 0 || idx >= ADC_CH_COUNT) + if (idx < 0 || idx >= ADC_CH_COUNT) return EC_ERROR_INVAL; ret = get_temp(idx, &temp_c); |