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>
This commit is contained in:
Uwe Kleine-König
2022-04-25 19:32:55 +02:00
committed by Bartosz Golaszewski
parent c83227a5d0
commit fae74fb5d5
5 changed files with 9 additions and 23 deletions

View File

@@ -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;