iio: tmp006: Check channel info on write
authorPeter Meerwald <pmeerw@pmeerw.net>
Sun, 21 Jun 2015 21:50:21 +0000 (23:50 +0200)
committerJonathan Cameron <jic23@kernel.org>
Sun, 19 Jul 2015 10:48:18 +0000 (11:48 +0100)
commitf451957dafe712ab2cd4b7ca8ba9197798115fbe
treeb5a23e3c949e109516fddb8a81b796e61b972136
parent06b00f99ca8a0ec79f5d428dfb128abd14162c57
iio: tmp006: Check channel info on write

only SAMP_FREQ is writable

Will lead to SAMP_FREQ being written by any attempt to write
to the other exported attributes and hence a rather unexpected
result!

Signed-off-by: Peter Meerwald <pmeerw@pmeerw.net>
Cc: <Stable@vger.kernel.org>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/temperature/tmp006.c