staging: ti-soc-thermal: fix bitfield writing while updating thresholds
authorEduardo Valentin <eduardo.valentin@ti.com>
Tue, 19 Mar 2013 14:54:27 +0000 (10:54 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 25 Mar 2013 18:28:31 +0000 (11:28 -0700)
commit0fb3c244fe506d1c0e6138890685c1d5e8cd29e2
tree77d135ac381834e0758456e5d977e37825f7516c
parentf5d43b7a51af16977b260c05435d61fc653f584a
staging: ti-soc-thermal: fix bitfield writing while updating thresholds

Wrong threshold cold values may be written with current implementation.
This patch fixes the threshold update function by simplifying the
bitfield manipulation sequence.

Signed-off-by: Eduardo Valentin <eduardo.valentin@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/ti-soc-thermal/ti-bandgap.c