diff options
author | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2021-10-12 17:39:34 +0200 |
---|---|---|
committer | Lee Jones <lee.jones@linaro.org> | 2021-11-05 14:40:26 +0000 |
commit | 356bbabade8e56efe2834159b5c062b8aff277dd (patch) | |
tree | 31c51d2783250844072ec39b80da81484c55baf8 /drivers/mfd/stmpe.h | |
parent | c39cf60feba62e2b5b387ca3dfe642f9d473c195 (diff) | |
download | linux-stable-356bbabade8e56efe2834159b5c062b8aff277dd.tar.gz linux-stable-356bbabade8e56efe2834159b5c062b8aff277dd.tar.bz2 linux-stable-356bbabade8e56efe2834159b5c062b8aff277dd.zip |
mfd: stmpe: Make stmpe_remove() return void
Up to now stmpe_remove() returns zero unconditionally. Make it return
void instead which makes it easier to see in the callers that there is
no error to handle.
Also the return value of i2c and spi remove callbacks is ignored anyway.
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Link: https://lore.kernel.org/r/20211012153945.2651412-10-u.kleine-koenig@pengutronix.de
Diffstat (limited to 'drivers/mfd/stmpe.h')
-rw-r--r-- | drivers/mfd/stmpe.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mfd/stmpe.h b/drivers/mfd/stmpe.h index 83491e99ba3c..1b4f91d03bbf 100644 --- a/drivers/mfd/stmpe.h +++ b/drivers/mfd/stmpe.h @@ -98,7 +98,7 @@ struct stmpe_client_info { }; int stmpe_probe(struct stmpe_client_info *ci, enum stmpe_partnum partnum); -int stmpe_remove(struct stmpe *stmpe); +void stmpe_remove(struct stmpe *stmpe); #define STMPE_ICR_LSB_HIGH (1 << 2) #define STMPE_ICR_LSB_EDGE (1 << 1) |