Skip to content

Commit

Permalink
package: kernel: leds-gca230718: fix build with Linux 6.6
Browse files Browse the repository at this point in the history
Starting with Linux 6.3 the .probe call no longer got the id parameter,
see also commit torvalds/linux@03c835f498b5
("i2c: Switch .probe() to not take an id parameter").

As the parameter is anyway unused by the driver, drop it when
building the GCA230718 LED driver for newer kernels.

Signed-off-by: Daniel Golle <[email protected]>
  • Loading branch information
dangowrt committed Apr 12, 2024
1 parent 076f945 commit 07918e6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions package/kernel/leds-gca230718/src/leds-gca230718.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 07918e6

Please sign in to comment.