MLK-18612-3 iio: adc: imx8qxp_adc: fix register setting
authorHaibo Chen <haibo.chen@nxp.com>
Thu, 14 Jun 2018 09:06:06 +0000 (17:06 +0800)
committerLeonard Crestez <leonard.crestez@nxp.com>
Wed, 17 Apr 2019 23:51:34 +0000 (02:51 +0300)
commit142448dec4de2dab76d67ddc1aa3679e436a5afe
treecd338f78e8f798bf0437bf55c865dda3bc4e10b5
parent6e0f5aede4893f162e0cb3565c0da0ef47685ac1
MLK-18612-3 iio: adc: imx8qxp_adc: fix register setting

For the register CFG/TCTRLx/CMDLx/CMDHx, all the defined bits of
these register are setting, so no need to read the register
first, and use "|=", and will cause issue, the bit setting will be
impact by the last time setting. So write these register directlly.

Signed-off-by: Haibo Chen <haibo.chen@nxp.com>
(cherry picked from commit 7e5abc21dda7a82900b6337360361ae0226b1876)
drivers/iio/adc/imx8qxp_adc.c