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, 5 Jul 2015 13:22:33 +0000 (14:22 +0100)
commit8d05abfaeff52bdf66aba3a3a337dcdbdb4911bf
tree3fec769bd0171702b4dfd794ecda1d397fe41ed1
parent897993fecbb8e6292aaa4079815f0793dcf6de8b
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