package: kernel: leds-gca230718: fix build with Linux 6.6
[openwrt/staging/stintel.git] / package / kernel / leds-gca230718 / src / leds-gca230718.c
index d759453cd9ff67746220a72dca9e738841cf84bf..194d149970ef20e4ad770c314266b2ec748cd1c2 100644 (file)
@@ -109,7 +109,11 @@ static int gca230718_set_brightness(struct led_classdev *led_cdev, enum led_brig
        return 0;
 }
 
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(6,3,0)
+static int gca230718_probe(struct i2c_client *client)
+#else
 static int gca230718_probe(struct i2c_client *client, const struct i2c_device_id *id)
+#endif
 {
        int status = 0;
        struct gca230718_private* gca230718_privateData;