Skip to content

Commit

Permalink
macintosh/ams: Adapt declaration of ams_i2c_remove() to earlier change
Browse files Browse the repository at this point in the history
Commit ed5c2f5 ("i2c: Make remove callback return void") changed
the prototype of ams_i2c_remove() but failed to adapt the declaration.
Catch up and fix the declaration accordingly.

Fixes: ed5c2f5 ("i2c: Make remove callback return void")
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Acked-by: Michael Ellerman <mpe@ellerman.id.au> (powerpc)
Signed-off-by: Wolfram Sang <wsa@kernel.org>
  • Loading branch information
Uwe Kleine-König authored and Wolfram Sang committed Sep 17, 2022
1 parent e05e470 commit 2dec3a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/macintosh/ams/ams-i2c.c
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ enum ams_i2c_cmd {

static int ams_i2c_probe(struct i2c_client *client,
const struct i2c_device_id *id);
static int ams_i2c_remove(struct i2c_client *client);
static void ams_i2c_remove(struct i2c_client *client);

static const struct i2c_device_id ams_id[] = {
{ "MAC,accelerometer_1", 0 },
Expand Down

0 comments on commit 2dec3a7

Please sign in to comment.