aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/omap-thermal
diff options
context:
space:
mode:
authorEduardo Valentin <eduardo.valentin@ti.com>2013-03-15 09:00:08 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-03-15 09:02:11 -0700
commit2f6af4b3dbe344bcae25b75a6a3bb22ee3a31169 (patch)
treed177d35c3cc1a3cdfff1abc0bc20ee03cd45c6e4 /drivers/staging/omap-thermal
parentstaging: omap-thermal: IRQ handler section (diff)
downloadlinux-dev-2f6af4b3dbe344bcae25b75a6a3bb22ee3a31169.tar.xz
linux-dev-2f6af4b3dbe344bcae25b75a6a3bb22ee3a31169.zip
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>
Diffstat (limited to 'drivers/staging/omap-thermal')
-rw-r--r--drivers/staging/omap-thermal/omap-bandgap.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/staging/omap-thermal/omap-bandgap.c b/drivers/staging/omap-thermal/omap-bandgap.c
index ded2c8c8b2cc..2acd30e81b6c 100644
--- a/drivers/staging/omap-thermal/omap-bandgap.c
+++ b/drivers/staging/omap-thermal/omap-bandgap.c
@@ -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)