linux-iio.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v3] drivers/iio/adc/vf610-adc: Add temperature sensor support
@ 2014-09-19 12:58 Sanchayan Maity
  2014-09-19 12:58 ` Sanchayan Maity
  0 siblings, 1 reply; 3+ messages in thread
From: Sanchayan Maity @ 2014-09-19 12:58 UTC (permalink / raw)
  To: jic23; +Cc: stefan, shawn.guo, B38611, linux-iio, linux-kernel,
	Sanchayan Maity

Vybrid ADC peripheral includes a temperature sensor
which is connected to channel number 26. This patch
adds support for the sensor. The raw value is read
and the temperature calculated in milli degree Celsius,
which is returned using IIO_CHAN_INFO_PROCESSED option.

Changes since v2:
v2 and v1 patch were with "ARM: imx:" Cleaned this.

Changes since v1:
[1] Removed info scale, index and sampling frequency 
specification for temperature channel.
[2] Instead of having info->value as int for temperature
calculation, kept it at u32 and only read value during 
temperature calculation

[v1] http://thread.gmane.org/gmane.linux.kernel.iio/13960/focus=13963
[v2] https://lkml.org/lkml/2014/9/18/161

Sanchayan Maity (1):
  drivers/iio/adc/vf610-adc: Add temperature sensor support

 drivers/iio/adc/vf610_adc.c |   28 ++++++++++++++++++++++++++--
 1 file changed, 26 insertions(+), 2 deletions(-)

-- 
1.7.9.5

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2014-09-21 12:27 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-09-19 12:58 [PATCH v3] drivers/iio/adc/vf610-adc: Add temperature sensor support Sanchayan Maity
2014-09-19 12:58 ` Sanchayan Maity
2014-09-21 12:27   ` Jonathan Cameron

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).