aboutsummaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorAlexandru Ardelean <[email protected]>2021-06-24 11:19:24 +0300
committerJonathan Cameron <[email protected]>2021-07-19 09:51:59 +0100
commitc359a80ca29099be951a1fa5c7529792cadf3e8f (patch)
tree3fa32775f7506e84f3d348016991c2c8142d00c7 /include/linux
parent2bb3b8f69accde535daee238e0f707dec452e0e4 (diff)
iio: temperature: tmp006: make sure the chip is powered up in probe
When the device is probed, there's no guarantee that the device is not in power-down mode. This can happen if the driver is unregistered and re-probed. To make sure this doesn't happen, the value of the TMP006_CONFIG register (which is read in the probe function and stored in the device's private data) is being checked to see if the MOD bits have the correct value. This is a fix for a somewhat-rare corner case. As it stands, this doesn't look like a high priority to go into the Fixes route. Signed-off-by: Alexandru Ardelean <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jonathan Cameron <[email protected]>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions