aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/platform_data
diff options
context:
space:
mode:
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>2022-08-15 10:02:29 +0200
committerWolfram Sang <wsa@kernel.org>2022-08-16 12:34:13 +0200
commit6a8f359c3132e4f51bdb263ad74ec632c65e55fd (patch)
treeeea078421e0728ab3900285e0de326b0e3d4d246 /include/linux/platform_data
parentleds: lm3601x: Improve error reporting for problems during .remove() (diff)
downloadlinux-dev-6a8f359c3132e4f51bdb263ad74ec632c65e55fd.tar.xz
linux-dev-6a8f359c3132e4f51bdb263ad74ec632c65e55fd.zip
gpio: pca953x: Make platform teardown callback return void
All platforms that provide a teardown callback return 0. New users are supposed to not make use of platform support, so there is no functionality lost. This patch is a preparation for making i2c remove callbacks return void. Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com> Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Acked-by: Bartosz Golaszewski <brgl@bgdev.pl> Signed-off-by: Wolfram Sang <wsa@kernel.org>
Diffstat (limited to 'include/linux/platform_data')
-rw-r--r--include/linux/platform_data/pca953x.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/platform_data/pca953x.h b/include/linux/platform_data/pca953x.h
index 4eb53e023997..96c1a14ab365 100644
--- a/include/linux/platform_data/pca953x.h
+++ b/include/linux/platform_data/pca953x.h
@@ -22,7 +22,7 @@ struct pca953x_platform_data {
int (*setup)(struct i2c_client *client,
unsigned gpio, unsigned ngpio,
void *context);
- int (*teardown)(struct i2c_client *client,
+ void (*teardown)(struct i2c_client *client,
unsigned gpio, unsigned ngpio,
void *context);
const char *const *names;