hwmon: lis3: use block read to access data registers
Add optional blockread function to interface driver. If available the chip driver uses it for data register access. For 12 bit device it reads 6 bytes to get 3*16bit data. For 8 bit device it reads out 5 bytes since every second byte is dummy. This optimizes bus usage and reduces number of operations and interrupts needed for one data update. Signed-off-by: NSamu Onkalo <samu.p.onkalo@nokia.com> Acked-by: NJonathan Cameron <jic23@cam.ac.uk> Acked-by: NEric Piel <eric.piel@tremplin-utc.net> Signed-off-by: NGuenter Roeck <guenter.roeck@ericsson.com>
Showing
想要评论请 注册 或 登录