Linux IIO development
 help / color / mirror / Atom feed
* [PATCH] iio: core: added support for IIO_VAL_INT
@ 2015-10-27  8:51 Sean Nyekjaer
  2015-10-31  9:39 ` Jonathan Cameron
  0 siblings, 1 reply; 2+ messages in thread
From: Sean Nyekjaer @ 2015-10-27  8:51 UTC (permalink / raw)
  To: linux-iio; +Cc: Sean Nyekjaer

Addded core support for IIO_VAL_INT in write_raw_get_fmt function.

Signed-off-by: Sean Nyekjaer <sean.nyekjaer@prevas.dk>
---
 drivers/iio/industrialio-core.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/drivers/iio/industrialio-core.c b/drivers/iio/industrialio-core.c
index 208358f..2d08c3c 100644
--- a/drivers/iio/industrialio-core.c
+++ b/drivers/iio/industrialio-core.c
@@ -571,6 +571,9 @@ static ssize_t iio_write_channel_info(struct device *dev,
 	if (indio_dev->info->write_raw_get_fmt)
 		switch (indio_dev->info->write_raw_get_fmt(indio_dev,
 			this_attr->c, this_attr->address)) {
+		case IIO_VAL_INT:
+			fract_mult = 1;
+			break;
 		case IIO_VAL_INT_PLUS_MICRO:
 			fract_mult = 100000;
 			break;
-- 
2.6.2


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

end of thread, other threads:[~2015-10-31  9:39 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-10-27  8:51 [PATCH] iio: core: added support for IIO_VAL_INT Sean Nyekjaer
2015-10-31  9:39 ` Jonathan Cameron

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox