Skip to content
Commit 13f82ca3 authored by Luca Ellero's avatar Luca Ellero Committed by Dmitry Torokhov
Browse files

Input: ads7846 - always set last command to PWRDOWN



Controllers that report pressure (e.g. ADS7846) use 5 commands and the
correct sequence is READ_X, READ_Y, READ_Z1, READ_Z2, PWRDOWN.

Controllers that don't report pressure (e.g. ADS7845/ADS7843) use only 3
commands and the correct sequence should be READ_X, READ_Y, PWRDOWN. But
the sequence sent was incorrect: READ_X, READ_Y, READ_Z1.

Fix this by setting the third (and last) command to PWRDOWN.

Fixes: ffa458c1 ("spi: ads7846 driver")
Signed-off-by: default avatarLuca Ellero <l.ellero@asem.it>
Reviewed-by: default avatarAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20230126105227.47648-3-l.ellero@asem.it


Signed-off-by: default avatarDmitry Torokhov <dmitry.torokhov@gmail.com>
parent d50584d7
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment