[openwrt/openwrt] kernel: leds-gca230718: remove old kernel compat

LEDE Commits lede-commits at lists.infradead.org
Mon Dec 23 15:24:59 PST 2024


hauke pushed a commit to openwrt/openwrt.git, branch main:
https://git.openwrt.org/e2b80013ed78fef11ff5f2e1347fb9fe250f5231

commit e2b80013ed78fef11ff5f2e1347fb9fe250f5231
Author: Rosen Penev <rosenp at gmail.com>
AuthorDate: Sun Oct 6 16:53:39 2024 -0700

    kernel: leds-gca230718: remove old kernel compat
    
    Not needed as all the older kernels are gone.
    
    Signed-off-by: Rosen Penev <rosenp at gmail.com>
    Link: https://github.com/openwrt/openwrt/pull/16869
    Signed-off-by: Hauke Mehrtens <hauke at hauke-m.de>
---
 package/kernel/leds-gca230718/src/leds-gca230718.c | 13 -------------
 1 file changed, 13 deletions(-)

diff --git a/package/kernel/leds-gca230718/src/leds-gca230718.c b/package/kernel/leds-gca230718/src/leds-gca230718.c
index 71c8b983b5..9069fc90f7 100644
--- a/package/kernel/leds-gca230718/src/leds-gca230718.c
+++ b/package/kernel/leds-gca230718/src/leds-gca230718.c
@@ -114,12 +114,7 @@ static int gca230718_set_brightness(struct led_classdev *led_cdev,
 	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;
@@ -195,20 +190,12 @@ static int gca230718_probe(struct i2c_client *client,
 	return status;
 }
 
-#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 18, 0)
 static void gca230718_remove(struct i2c_client *client)
-#else
-static int gca230718_remove(struct i2c_client *client)
-#endif
 {
 	struct gca230718_private *gca230718_privateData;
 	gca230718_privateData = i2c_get_clientdata(client);
 	mutex_destroy(&gca230718_privateData->lock);
 	gca230718_init_private_led_data(gca230718_privateData);
-
-#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 18, 0)
-	return 0;
-#endif
 }
 
 static const struct i2c_device_id gca230718_i2c_ids[] = {




More information about the lede-commits mailing list