Axel Lin 6f7d485e13 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.

[akpm@linux-foundation.org: make `ret' signed]
Signed-off-by: Axel Lin <axel.lin@gmail.com>
Cc: Kalhan Trisal <kalhan.trisal@intel.com>
Cc: Alan Cox <alan@linux.intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2011-03-22 17:44:10 -07:00
..
2011-03-17 14:05:34 +01:00
2010-10-29 04:16:28 -04:00
2011-03-17 14:05:34 +01:00
2010-10-29 00:29:21 +02:00
2011-03-22 17:44:10 -07:00
2011-03-22 17:44:10 -07:00
2010-10-26 16:52:14 -07:00
2011-03-22 17:44:10 -07:00