diff options
author | José Miguel Gonçalves <jose.goncalves@inov.pt> | 2013-12-11 11:11:13 (GMT) |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-12-20 15:48:53 (GMT) |
commit | 45e569b558a59837f88d8eda7527d7c50154d75d (patch) | |
tree | 1ccbe7a0933039851c4e6fa2fa0e878a1a204129 /drivers/hwmon/ds1621.c | |
parent | e6ddcefc7e3694fdf85703b366d35b4bdb1b89fd (diff) | |
download | linux-fsl-qoriq-45e569b558a59837f88d8eda7527d7c50154d75d.tar.xz |
hwmon: HIH-6130: Support I2C bus drivers without I2C_FUNC_SMBUS_QUICK
commit efabcc2123f0ed47870033b8d6fc73b50d76d635 upstream.
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]
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/hwmon/ds1621.c')
0 files changed, 0 insertions, 0 deletions