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-22 17:44:00 -07:00
2011-03-18 06:31:43 -07:00
2011-03-18 10:37:40 -07:00
2011-03-16 15:05:40 -07:00
2011-03-22 16:25:25 -07:00
2011-03-18 10:37:40 -07:00
2011-03-20 18:14:55 -07:00
2011-03-16 17:54:33 -04:00
2011-03-16 17:28:10 -07:00
2011-03-20 18:14:55 -07:00
2011-03-18 10:37:40 -07:00
2011-03-21 10:05:22 -07:00
2011-03-18 10:37:40 -07:00
2011-03-18 10:56:02 -07:00
2011-03-22 17:43:59 -07:00
2011-03-22 17:43:59 -07:00
2011-03-21 17:59:37 +01:00
2011-03-22 10:05:27 -07:00
2011-03-17 14:05:34 +01:00
2011-03-17 14:05:34 +01:00
2011-03-17 18:40:35 -07:00
2011-03-19 22:27:06 -07:00
2011-03-20 18:14:55 -07:00
2011-03-22 17:43:59 -07:00
2011-03-22 17:43:59 -07:00
2011-03-17 17:54:40 -07:00
2011-03-19 22:27:06 -07:00
2011-03-17 14:05:34 +01:00
2011-03-20 18:14:55 -07:00
2011-03-17 19:08:06 -07:00
2011-03-22 17:44:10 -07:00
2011-03-18 22:32:40 -07:00
2011-03-18 10:50:27 -07:00
2011-03-22 09:25:34 -07:00
2011-03-16 17:28:10 -07:00
2011-03-18 10:56:44 -07:00
2011-03-16 17:28:10 -07:00
2011-03-22 17:43:59 -07:00
2011-03-17 14:05:35 +01:00
2011-03-17 14:05:35 +01:00
2011-03-20 18:14:55 -07:00
2011-03-17 17:54:40 -07:00
2011-03-22 09:35:53 -07:00
2011-03-18 10:56:02 -07:00
2011-03-22 17:43:59 -07:00
2011-03-18 10:37:40 -07:00
2011-03-22 16:17:32 -07:00
2011-03-22 17:43:59 -07:00
2011-03-13 23:08:19 +02:00
2011-03-22 17:44:00 -07:00
2011-03-18 10:37:40 -07:00
2011-03-17 18:37:42 -07:00