diff options
| author | 2022-04-25 19:32:55 +0200 | |
|---|---|---|
| committer | 2022-04-25 20:55:39 +0200 | |
| commit | fae74fb5d525f979085b6e70b883d7a7049bf15f (patch) | |
| tree | 6f88c76459e2d710527e138237c6098cac141309 /include | |
| parent | irq/gpio: ixp4xx: Drop boardfile probe path (diff) | |
| download | linux-dev-fae74fb5d525f979085b6e70b883d7a7049bf15f.tar.xz linux-dev-fae74fb5d525f979085b6e70b883d7a7049bf15f.zip | |
gpio: pcf857x: Make teardown callback return void
All teardown functions return 0. Also there is little sense in returning
a negative error code from an i2c remove function as this only results in
emitting an error message but the device is removed nevertheless.
This patch is a preparation for making i2c remove callbacks return void.
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Bartosz Golaszewski <brgl@bgdev.pl>
Diffstat (limited to 'include')
| -rw-r--r-- | include/linux/platform_data/pcf857x.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/platform_data/pcf857x.h b/include/linux/platform_data/pcf857x.h index 11d4ed78c7f4..01d0a3ea3aef 100644 --- a/include/linux/platform_data/pcf857x.h +++ b/include/linux/platform_data/pcf857x.h @@ -36,7 +36,7 @@ struct pcf857x_platform_data { int (*setup)(struct i2c_client *client, int gpio, unsigned ngpio, void *context); - int (*teardown)(struct i2c_client *client, + void (*teardown)(struct i2c_client *client, int gpio, unsigned ngpio, void *context); void *context; |
