summaryrefslogtreecommitdiffstats
path: root/drivers/md
diff options
context:
space:
mode:
authorVianney le Clément de Saint-Marcq <vianney.leclement@essensium.com>2015-03-30 10:35:00 +0200
committerJonathan Cameron <jic23@kernel.org>2015-04-09 15:06:31 +0100
commitfad65a8fe5b85b5039b316258c2790e773cc3502 (patch)
treef1eab1e7abf17b36c5158a91b425f6b07bc9c047 /drivers/md
parent5147b21a61806b0ff2c29ccb3f8bc37495d5c2ff (diff)
downloadlinux-fad65a8fe5b85b5039b316258c2790e773cc3502.tar.bz2
iio: mlx90614: Add emissivity setting
The mapping from the 16-bit EEPROM value to the decimal 0-1 range is approximate. A special case ensures 0xFFFF shows as 1.0 instead of 0.999998565. Writing to EEPROM requires an explicit erase by writing zero. In addition, it takes 20ms for the erase/write to complete. During this time no EEPROM register should be accessed. Therefore, two msleep()s are added to the write function and a mutex protects against concurrent access. Signed-off-by: Vianney le Clément de Saint-Marcq <vianney.leclement@essensium.com> Cc: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'drivers/md')
0 files changed, 0 insertions, 0 deletions