mirror of https://gitee.com/openkylin/linux.git
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>
This commit is contained in:
parent
05a93489bc
commit
e1703b329f
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue