io: accel: kxcjk1013: restore the range after resume.
authorhe, bo <bo.he@intel.com>
Wed, 6 Mar 2019 02:32:20 +0000 (10:32 +0800)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 9 Mar 2019 17:30:14 +0000 (17:30 +0000)
commitfe2d3df639a7940a125a33d6460529b9689c5406
tree541863f0e63c12e76fcc735e01e249f8318b6189
parent73f3bc6da506711302bb67572440eb84b1ec4a2c
io: accel: kxcjk1013: restore the range after resume.

On some laptops, kxcjk1013 is powered off when system enters S3. We need
restore the range regiter during resume. Otherwise, the sensor doesn't
work properly after S3.

Signed-off-by: he, bo <bo.he@intel.com>
Signed-off-by: Chen, Hu <hu1.chen@intel.com>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Cc: <Stable@vger.kernel.org>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/accel/kxcjk-1013.c