Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d0ac1587 authored by Oliver Wang's avatar Oliver Wang
Browse files

input: sensors: modify initial distance when apds9930 enabled



There's an observed issue that the proximity value is near after
enable proximity sensor. Thus modify the logic to reflect the
actual distance.

CRs-fixed: 649445
Change-Id: I0747fa70b36ccedce0fd5748b3b0825e52f5e039
Signed-off-by: default avatarOliver Wang <mengmeng@codeaurora.org>
parent 792ce78d
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -1240,7 +1240,8 @@ static int apds993x_enable_ps_sensor(struct i2c_client *client, int val)
			apds993x_set_enable(client,0);

			/* init threshold for proximity */
			apds993x_set_pilt(client, 0);
			apds993x_set_pilt(client,
					apds993x_ps_detection_threshold);
			apds993x_set_piht(client,
					apds993x_ps_detection_threshold);
			/*calirbation*/