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>
This commit is contained in:
parent
22a2343689
commit
6a8f359c31
3 changed files with 8 additions and 17 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue