diff options
author | Zabi Khadri <zkhadri@google.com> | 2022-12-08 20:42:06 +0000 |
---|---|---|
committer | Zabi Khadri <zkhadri@google.com> | 2022-12-08 21:25:52 +0000 |
commit | c19de4896e584240ba27b96ae469f5ed5e877b53 (patch) | |
tree | 11f2ae3669a9ad84c1f6b1ca031637af7a37f1ac | |
parent | 1b2882601ab1276f17bf64059bdd8b7e760272c6 (diff) | |
download | drivers-c19de4896e584240ba27b96ae469f5ed5e877b53.tar.gz |
cs40l2x: log vibration state
Bug: 255074134
Test: Manual and idlcli vibrator compose 0 x y
Signed-off-by: Zabi Khadri <zkhadri@google.com>
Change-Id: I6333bb9dc90b26eba54f8a8125e901963b97a544
-rw-r--r-- | haptics/cs40l2x/cs40l2x.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/haptics/cs40l2x/cs40l2x.c b/haptics/cs40l2x/cs40l2x.c index 436f319..e4bdb52 100644 --- a/haptics/cs40l2x/cs40l2x.c +++ b/haptics/cs40l2x/cs40l2x.c @@ -430,6 +430,7 @@ static void cs40l2x_set_state(struct cs40l2x_private *cs40l2x, bool state) { if (cs40l2x->vibe_state != state) { cs40l2x->vibe_state = state; + dev_info(cs40l2x->dev, "Vibration state: %d \n", state); cs40l2x_sysfs_notify(cs40l2x, "vibe_state"); } } |