]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
i2c: cp2615: rename disconnect callback
authorJohan Hovold <johan@kernel.org>
Fri, 6 Mar 2026 09:41:14 +0000 (10:41 +0100)
committerWolfram Sang <wsa+renesas@sang-engineering.com>
Fri, 20 Mar 2026 21:20:42 +0000 (22:20 +0100)
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>
drivers/i2c/busses/i2c-cp2615.c

index e2d7cd2390fc4a0a4e7a48c88651f727a4cc68c3..c1dbf7961a0297bc38ffacaafb8a32a50cb71c8d 100644 (file)
@@ -270,8 +270,7 @@ static struct i2c_adapter_quirks cp2615_i2c_quirks = {
        .max_comb_2nd_msg_len = MAX_I2C_SIZE
 };
 
-static void
-cp2615_i2c_remove(struct usb_interface *usbif)
+static void cp2615_i2c_disconnect(struct usb_interface *usbif)
 {
        struct i2c_adapter *adap = usb_get_intfdata(usbif);
 
@@ -325,7 +324,7 @@ MODULE_DEVICE_TABLE(usb, id_table);
 static struct usb_driver cp2615_i2c_driver = {
        .name = "i2c-cp2615",
        .probe = cp2615_i2c_probe,
-       .disconnect = cp2615_i2c_remove,
+       .disconnect = cp2615_i2c_disconnect,
        .id_table = id_table,
 };