diff options
author | José Miguel Gonçalves <jose.goncalves@inov.pt> | 2013-12-11 12:11:13 +0100 |
---|---|---|
committer | Guenter Roeck <linux@roeck-us.net> | 2013-12-11 22:37:30 +0100 |
commit | efabcc2123f0ed47870033b8d6fc73b50d76d635 (patch) | |
tree | 7cfd6a2641b7d7f5a616d5a4d346fbbb164eb59e /kernel/notifier.c | |
parent | Linux 3.13-rc3 (diff) | |
download | linux-efabcc2123f0ed47870033b8d6fc73b50d76d635.tar.xz linux-efabcc2123f0ed47870033b8d6fc73b50d76d635.zip |
hwmon: HIH-6130: Support I2C bus drivers without I2C_FUNC_SMBUS_QUICK
Some I2C bus drivers do not allow zero-length data transfers which are
required to start a measurement with the HIH6130/1 sensor. Nevertheless,
we can overcome this limitation by writing a zero dummy byte. This byte
is ignored by the sensor and was verified to be working with the OMAP
I2C bus driver in a BeagleBone board.
Signed-off-by: José Miguel Gonçalves <jose.goncalves@inov.pt>
[Guenter Roeck: Simplified complexity of write_length initialization]
Cc: stable@vger.kernel.org # v3.10+
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'kernel/notifier.c')
0 files changed, 0 insertions, 0 deletions