Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

cm3663: fix proximity initial value

Signed-off-by: Jesper Lundgren <koudelkaa@gmail.com>
  • Loading branch information...
commit 31283e7b575605ba6c22924e379d640da43afe87 1 parent b40e977
Daniel Hillenbrand authored cleaton committed

Showing 1 changed file with 4 additions and 0 deletions. Show diff stats Hide diff stats

  1. 4  drivers/sensor/cm3663.c
4  drivers/sensor/cm3663.c
@@ -860,6 +860,10 @@ static int cm3663_i2c_probe(struct i2c_client *client,
860 860
 	dev_set_drvdata(cm3663->switch_cmd_dev, cm3663);
861 861
 #endif
862 862
 
  863
+    /* set initial proximity value (far) */
  864
+    input_report_abs(cm3663->proximity_input_dev, ABS_DISTANCE, 1);
  865
+    input_sync(cm3663->proximity_input_dev);
  866
+
863 867
 	goto done;
864 868
 
865 869
 /* error, unwind it all */

0 notes on commit 31283e7

Please sign in to comment.
Something went wrong with that request. Please try again.