kernel:vibrator seq id change
authorxuwei9 <xuwei9@lenovo.com>
Mon, 28 Jan 2019 10:01:37 +0000 (18:01 +0800)
committerlingsen1 <lingsen1@lenovo.com>
Sun, 7 Feb 2021 09:36:55 +0000 (17:36 +0800)
Change vib seq id according
to framework layer

Change-Id: Id14f6509203956d74ae1047bec154360a4478e27
Signed-off-by: xuwei9 <xuwei9@mt.com>
Reviewed-on: https://gerrit.mot.com/1302007
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key

drivers/misc/aw8695_haptic/aw8695.c

index 644bfcf7f1c295d30635b30dd728af4438424c48..a1035eb73c37e1e592f01b637e4ba044a1ba73f4 100755 (executable)
@@ -1974,7 +1974,6 @@ static ssize_t aw8695_duration_store(struct device *dev,
         return count;
 
     aw8695->duration = val;
-printk(KERN_ERR "david %s,duration:%d\n",__func__,val);
     return count;
 }
 
@@ -2258,9 +2257,8 @@ static ssize_t aw8695_seq_store(struct device *dev,
     rc = kstrtouint(buf, 0, &val);
     if (rc < 0)
         return rc;
-
+    val = ((val >> 24) -2) ;
     pr_debug("%s: value=%x\n", __FUNCTION__, val);
-    printk(KERN_ERR "david %s seq value:%d\n",__func__,val);
     mutex_lock(&aw8695->lock);
     for(i=0; i<4; i++) {
         aw8695->seq[i] = (val>>((AW8695_WAV_SEQ_SIZE-i-1)*8))&0xFF;