aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/misc/atmel_tclib.c
diff options
context:
space:
mode:
authorAxel Lin <[email protected]>2011-03-22 23:34:00 +0000
committerLinus Torvalds <[email protected]>2011-03-23 00:44:10 +0000
commit6f7d485e13c6c07348cf9cfd1b735fe1bcf3caa9 (patch)
treee29567aa27363fc8072a355d89d951ef95c41920 /drivers/misc/atmel_tclib.c
parentdrivers/misc/apds9802als.c: put the device into runtime suspend after resume(... (diff)
downloadkernel-6f7d485e13c6c07348cf9cfd1b735fe1bcf3caa9.tar.gz
kernel-6f7d485e13c6c07348cf9cfd1b735fe1bcf3caa9.zip
drivers/misc/hmc6352.c: fix wrong return value checking for i2c_master_recv()
i2c_master_recv() returns negative errno, or else the number of bytes read. Thus i2c_master_recv(client, i2c_data, 2) returns 2 instead of 1 in success case. [[email protected]: make `ret' signed] Signed-off-by: Axel Lin <[email protected]> Cc: Kalhan Trisal <[email protected]> Cc: Alan Cox <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'drivers/misc/atmel_tclib.c')
0 files changed, 0 insertions, 0 deletions