summaryrefslogtreecommitdiff
path: root/include/linux/platform_data/max6697.h
diff options
context:
space:
mode:
authorVivien Didelot <vivien.didelot@savoirfairelinux.com>2013-01-15 22:33:06 +0400
committerGuenter Roeck <linux@roeck-us.net>2013-02-06 21:57:55 +0400
commit412e29c135c11be6e2e4b22c0691e861b3d946c4 (patch)
tree629d7e08a4ae41b6f1814115ac6af1df3d0945f7 /include/linux/platform_data/max6697.h
parent9e3970fba9ea43bc2c215f71f78bcf766c1775e7 (diff)
downloadlinux-412e29c135c11be6e2e4b22c0691e861b3d946c4.tar.xz
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>
Diffstat (limited to 'include/linux/platform_data/max6697.h')
0 files changed, 0 insertions, 0 deletions