diff options
author | TreeHugger Robot <treehugger-gerrit@google.com> | 2022-04-22 08:39:05 +0000 |
---|---|---|
committer | Android Partner Code Review <android-gerrit-partner@google.com> | 2022-04-22 08:39:05 +0000 |
commit | 87c5394446c1ae1e9b593ce53e73089e68e80ee0 (patch) | |
tree | c67d2d77af4783281168713752492ee3f0b4992d /ft3658 | |
parent | 187218ec1f27b6aff2696ccbb7cd66967e44c40f (diff) | |
parent | a4587207e57dfef00cf2e1c6ca63cd05f6f747b9 (diff) | |
download | focaltech_touch-87c5394446c1ae1e9b593ce53e73089e68e80ee0.tar.gz |
Merge "touch/focaltech: Add SPI shutdown function." into android13-gs-pixel-5.10
Diffstat (limited to 'ft3658')
-rw-r--r-- | ft3658/focaltech_core.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/ft3658/focaltech_core.c b/ft3658/focaltech_core.c index a88df0e..d5a689d 100644 --- a/ft3658/focaltech_core.c +++ b/ft3658/focaltech_core.c @@ -3347,6 +3347,11 @@ static int fts_ts_remove(struct spi_device *spi) return fts_ts_remove_entry(spi_get_drvdata(spi)); } +static void fts_ts_shutdown(struct spi_device *spi) +{ + fts_ts_remove(spi); +} + static const struct spi_device_id fts_ts_id[] = { {FTS_DRIVER_NAME, 0}, {}, @@ -3360,6 +3365,7 @@ MODULE_DEVICE_TABLE(of, fts_dt_match); static struct spi_driver fts_ts_driver = { .probe = fts_ts_probe, .remove = fts_ts_remove, + .shutdown = fts_ts_shutdown, .driver = { .name = FTS_DRIVER_NAME, .owner = THIS_MODULE, |