Skip to content
Commit efabcc21 authored by José Miguel Gonçalves's avatar José Miguel Gonçalves Committed by Guenter Roeck
Browse files

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: default avatarJosé 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: default avatarGuenter Roeck <linux@roeck-us.net>
parent 374b1057
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment