diff options
author | Jonathan Cameron <jic23@cam.ac.uk> | 2011-07-14 09:24:02 (GMT) |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2011-07-18 20:25:23 (GMT) |
commit | e1703b329f7c7ea82ea181dc4c50020f25061a2c (patch) | |
tree | b11c913ac0489704f3f122384468d3e562ded291 /drivers/staging | |
parent | 05a93489bc569d549e55cf7392a8b2bf50d9d095 (diff) | |
download | linux-fsl-qoriq-e1703b329f7c7ea82ea181dc4c50020f25061a2c.tar.xz |
staging:iio:meter:ade7753 should be 16 bit read not 8 bit for mode register.
Build tested only.
Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk>
Reported-by: Randy Dunlap <rdunlap@xenotime.net>
Acked-by: Randy Dunlap <rdunlap@xenotime.net>
Acked-by: Michael Hennerich <michael.hennerich@analog.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging')
-rw-r--r-- | drivers/staging/iio/meter/ade7753.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/staging/iio/meter/ade7753.c b/drivers/staging/iio/meter/ade7753.c index 59f47fd..4d1bd42 100644 --- a/drivers/staging/iio/meter/ade7753.c +++ b/drivers/staging/iio/meter/ade7753.c @@ -398,9 +398,9 @@ static ssize_t ade7753_read_frequency(struct device *dev, char *buf) { int ret, len = 0; - u8 t; + u16 t; int sps; - ret = ade7753_spi_read_reg_8(dev, ADE7753_MODE, &t); + ret = ade7753_spi_read_reg_16(dev, ADE7753_MODE, &t); if (ret) return ret; |