Skip to content
Commit a9f92ccf authored by Guenter Roeck's avatar Guenter Roeck
Browse files

hwmon: (tmp102) Rework chip configuration



So far the chip was forced into polarity 0, even if it was preconfigured
differently. Do not touch the polarity when configuring the chip.

Also, the configuration register was read beack to check if the
configuration 'sticks'. Ultimately, that is similar to checking if the
chip is a tmp102 in the first place. Checking if a write into the
configuration register was successful is really not the way to do it,
and quite risky if the chip is not a tmp102, so drop that check.
Instead, verify if the configuration register has unexpected bits set
before writing into it.

Acked-by: default avatarNishanth Menon <nm@ti.com>
Signed-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
parent 3d8f7a89
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment