diff options
author | Luca Ellero <l.ellero@asem.it> | 2023-01-26 11:52:26 +0100 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2023-01-30 03:33:45 +0100 |
commit | 13f82ca3878db8284a70ef9711d7f710a31eb562 (patch) | |
tree | 8b608d871cc9704bd8f9bdeaf0a2ee073454450c /.get_maintainer.ignore | |
parent | Input: ads7846 - don't report pressure for ads7845 (diff) | |
download | linux-13f82ca3878db8284a70ef9711d7f710a31eb562.tar.xz linux-13f82ca3878db8284a70ef9711d7f710a31eb562.zip |
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: ffa458c1bd9b ("spi: ads7846 driver")
Signed-off-by: Luca Ellero <l.ellero@asem.it>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20230126105227.47648-3-l.ellero@asem.it
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to '.get_maintainer.ignore')
0 files changed, 0 insertions, 0 deletions