Skip to content

Commit 7a8d9fa

Browse files
jhovoldWolfram Sang
authored andcommitted
i2c: cp2615: rename disconnect callback
Rename the driver disconnect function so that it reflects the callback name for consistency with the rest of the kernel (e.g. makes it easier to grep for). Signed-off-by: Johan Hovold <johan@kernel.org> Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
1 parent a78295d commit 7a8d9fa

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

drivers/i2c/busses/i2c-cp2615.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -270,8 +270,7 @@ static struct i2c_adapter_quirks cp2615_i2c_quirks = {
270270
.max_comb_2nd_msg_len = MAX_I2C_SIZE
271271
};
272272

273-
static void
274-
cp2615_i2c_remove(struct usb_interface *usbif)
273+
static void cp2615_i2c_disconnect(struct usb_interface *usbif)
275274
{
276275
struct i2c_adapter *adap = usb_get_intfdata(usbif);
277276

@@ -325,7 +324,7 @@ MODULE_DEVICE_TABLE(usb, id_table);
325324
static struct usb_driver cp2615_i2c_driver = {
326325
.name = "i2c-cp2615",
327326
.probe = cp2615_i2c_probe,
328-
.disconnect = cp2615_i2c_remove,
327+
.disconnect = cp2615_i2c_disconnect,
329328
.id_table = id_table,
330329
};
331330

0 commit comments

Comments
 (0)