Vivien Didelot
412e29c135
hwmon: (sht15) check GPIO directions
...
Without this patch, the SHT15 driver may fail silently with a
non-bidirectional data line and/or an input-only clock line.
This patch checks the return value of gpio_direction_* function calls
and returns the error code (if any) to the caller. If an error occurs in
the read work function (work_funct_t), we wake the queue up directly
without updating the data->state flag, to notice the waiter of the I/O
error.
The patch also makes minor cleanups: s/error_ret/unlock for some labels
and uses devm_gpio_request_one() for the clock line.
Signed-off-by: Vivien Didelot <vivien.didelot@savoirfairelinux.com>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
2013-02-06 09:57:55 -08:00
..
2013-01-25 21:03:54 -08:00
2012-11-28 11:50:34 -08:00
2012-11-28 11:50:34 -08:00
2012-10-10 15:25:56 +02:00
2012-11-28 11:50:34 -08:00
2013-01-25 21:03:54 -08:00
2012-09-23 21:08:29 -07:00
2012-11-28 11:50:34 -08:00
2013-01-25 21:03:54 -08:00
2012-07-21 21:48:38 -07:00
2013-01-25 21:03:54 -08:00
2012-09-23 21:08:29 -07:00
2013-01-25 21:03:54 -08:00
2013-01-25 21:03:54 -08:00
2012-09-23 21:08:30 -07:00
2013-01-25 21:03:54 -08:00
2012-11-28 11:50:34 -08:00
2013-01-25 21:03:54 -08:00
2012-11-28 11:50:34 -08:00
2013-01-25 21:03:54 -08:00
2013-01-25 21:03:54 -08:00
2013-01-25 21:03:54 -08:00
2013-01-25 21:03:54 -08:00
2012-10-10 15:25:56 +02:00
2013-01-25 21:03:54 -08:00
2013-01-25 21:03:54 -08:00
2012-10-10 15:25:56 +02:00
2012-07-21 21:48:39 -07:00
2013-01-25 21:03:55 -08:00
2012-12-11 13:13:55 -08:00
2012-12-05 10:55:55 -08:00
2013-01-25 21:03:54 -08:00
2012-09-23 21:08:31 -07:00
2012-07-21 21:48:39 -07:00
2013-01-25 21:03:54 -08:00
2012-10-10 15:25:56 +02:00
2013-01-25 21:03:54 -08:00
2012-11-28 11:50:34 -08:00
2013-01-25 21:03:54 -08:00
2013-01-25 21:03:54 -08:00
2012-12-11 13:13:55 -08:00
2013-01-25 21:03:54 -08:00
2013-01-25 21:03:54 -08:00
2013-01-25 21:03:54 -08:00
2013-01-25 21:03:54 -08:00
2012-11-28 11:50:34 -08:00
2012-11-28 11:50:34 -08:00
2012-12-19 22:17:02 +01:00
2012-12-19 22:16:59 +01:00
2012-11-28 11:50:34 -08:00
2012-10-10 15:25:56 +02:00
2012-10-10 15:25:56 +02:00
2012-12-05 10:55:54 -08:00
2013-01-25 21:03:54 -08:00
2013-01-25 21:03:54 -08:00
2012-11-28 11:50:34 -08:00
2012-11-28 11:50:34 -08:00
2012-11-28 11:50:34 -08:00
2012-12-13 10:59:11 -08:00
2012-10-10 15:25:56 +02:00
2013-01-25 21:03:54 -08:00
2012-11-28 11:50:34 -08:00
2013-01-25 21:03:54 -08:00
2012-07-21 21:48:40 -07:00
2013-01-25 21:03:54 -08:00
2013-01-25 21:03:54 -08:00
2013-01-25 21:03:54 -08:00
2013-01-25 21:03:54 -08:00
2012-07-21 21:48:38 -07:00
2013-01-25 21:03:54 -08:00
2012-07-21 21:48:40 -07:00
2013-01-25 21:03:54 -08:00
2012-10-10 15:25:56 +02:00
2013-01-25 21:03:54 -08:00
2012-09-23 21:08:31 -07:00
2013-01-25 21:03:54 -08:00
2012-10-10 15:25:56 +02:00
2012-10-10 15:25:56 +02:00
2012-10-10 15:25:56 +02:00
2012-10-10 15:25:56 +02:00
2012-12-13 10:59:11 -08:00
2012-11-28 11:50:34 -08:00
2012-11-28 11:50:34 -08:00
2012-10-10 15:25:56 +02:00
2013-01-25 21:03:54 -08:00
2013-01-25 21:03:54 -08:00
2013-01-25 21:03:54 -08:00
2013-01-25 21:03:54 -08:00
2013-01-25 21:03:54 -08:00
2012-11-28 11:50:34 -08:00
2012-09-23 21:08:36 -07:00
2012-11-28 11:50:34 -08:00
2012-11-28 11:50:34 -08:00
2012-11-28 11:50:34 -08:00
2012-07-21 21:48:41 -07:00
2012-11-28 11:50:34 -08:00
2012-09-23 21:08:29 -07:00
2012-05-30 07:55:38 +02:00
2012-11-28 11:49:40 -08:00
2012-11-28 11:49:40 -08:00
2013-02-06 09:57:55 -08:00
2012-11-28 11:50:34 -08:00
2013-01-25 21:03:54 -08:00
2012-10-10 15:25:56 +02:00
2012-11-28 11:50:34 -08:00
2013-01-25 21:03:54 -08:00
2013-01-25 21:03:54 -08:00
2013-01-25 21:03:54 -08:00
2013-01-25 21:03:54 -08:00
2013-01-25 21:03:54 -08:00
2012-07-21 21:48:42 -07:00
2012-12-16 18:21:33 -08:00
2012-11-28 11:50:34 -08:00
2013-01-09 21:47:22 -08:00
2013-01-25 21:03:54 -08:00
2012-11-28 11:50:34 -08:00
2013-01-25 21:03:54 -08:00
2013-01-25 21:03:54 -08:00
2012-07-21 21:48:43 -07:00
2013-01-25 21:03:54 -08:00
2013-01-25 21:03:54 -08:00
2013-01-25 21:03:54 -08:00
2013-01-25 21:03:54 -08:00
2013-01-25 21:03:54 -08:00
2013-01-25 21:03:54 -08:00
2013-01-25 21:03:54 -08:00
2013-01-25 21:03:54 -08:00
2012-11-28 11:50:34 -08:00
2012-11-28 11:50:34 -08:00