Re: [PATCH v2] io: accel: kxcjk1013: restore the range after resume.

2019-03-04 Thread Hans de Goede
Hi, On 04-03-19 08:05, Chen, Hu wrote: From: "he, bo" 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 Signed-off-by: Chen, Hu Thank you for the

[PATCH v2] io: accel: kxcjk1013: restore the range after resume.

2019-03-03 Thread Chen, Hu
From: "he, bo" 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 Signed-off-by: Chen, Hu --- Changes in v2: - Handle return value independently in resume