Skip to content

Commit

Permalink
staging:iio:meter:ade7753 should be 16 bit read not 8 bit for mode re…
Browse files Browse the repository at this point in the history
…gister.

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>
  • Loading branch information
Jonathan Cameron authored and Greg Kroah-Hartman committed Jul 18, 2011
1 parent 05a9348 commit e1703b3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/staging/iio/meter/ade7753.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit e1703b3

Please sign in to comment.