Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 6cef2ab0 authored by John Syne's avatar John Syne Committed by Jonathan Cameron
Browse files

staging:iio:ade7854: Fix the wrong number of bits to read



Fixes: correctly handle the data size in the read operation for I2C

The function ade7854_i2c_read_reg_32() have to invoke the
i2c_master_recv() for read 32 bits values, however, the counter is set
to 3 which means 24 bits. This patch fixes the wrong size of 24 bits, to
32 bits.

Signed-off-by: default avatarJohn Syne <john3909@gmail.com>
Signed-off-by: default avatarRodrigo Siqueira <rodrigosiqueiramelo@gmail.com>
Fixes: 8d97a587 ("staging: iio: meter: new driver for ADE7754 devices")
Signed-off-by: default avatarJonathan Cameron <Jonathan.Cameron@huawei.com>
parent 4297b23d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment