staging: omap-thermal: ADC section

Section of ADC helpers functions

Signed-off-by: Eduardo Valentin <eduardo.valentin@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Eduardo Valentin 2013-03-15 09:00:08 -04:00 committed by Greg Kroah-Hartman
parent fb65b88a58
commit 2f6af4b3db

View File

@ -231,6 +231,8 @@ static irqreturn_t omap_bandgap_tshut_irq_handler(int irq, void *data)
return IRQ_HANDLED;
}
/*** Helper functions which manipulate conversion ADC <-> mi Celsius ***/
static
int adc_to_temp_conversion(struct omap_bandgap *bg_ptr, int id, int adc_val,
int *t)