diff --git a/srcpkgs/ddcci-dkms/patches/linux-6.01.patch b/srcpkgs/ddcci-dkms/patches/linux-6.01.patch new file mode 100644 index 00000000000..5eeff848c85 --- /dev/null +++ b/srcpkgs/ddcci-dkms/patches/linux-6.01.patch @@ -0,0 +1,30 @@ +diff --git a/ddcci/ddcci.c b/ddcci/ddcci.c +index 586b6e29b48439e4b6132295c14891e938fe3dbb..ea76352904bb1920a9a816691d30d51591c803fa 100644 +--- a/ddcci/ddcci.c ++++ b/ddcci/ddcci.c +@@ -1785,6 +1785,13 @@ static int ddcci_remove(struct i2c_client *client) + return 0; + } + ++#if LINUX_VERSION_CODE >= KERNEL_VERSION(6, 1, 0) ++static void ddcci_remove_void(struct i2c_client *client) ++{ ++ ddcci_remove(client); ++} ++#endif ++ + /* + * I2C driver device identification table. + */ +@@ -1806,7 +1813,11 @@ static struct i2c_driver ddcci_driver = { + + .id_table = ddcci_idtable, + .probe = ddcci_probe, ++ #if LINUX_VERSION_CODE >= KERNEL_VERSION(6, 1, 0) ++ .remove = ddcci_remove_void, ++ #else + .remove = ddcci_remove, ++ #endif + .class = I2C_CLASS_DDC, + .detect = ddcci_detect, + .address_list = I2C_ADDRS( diff --git a/srcpkgs/ddcci-dkms/template b/srcpkgs/ddcci-dkms/template index e9106ccf293..46896d03bd5 100644 --- a/srcpkgs/ddcci-dkms/template +++ b/srcpkgs/ddcci-dkms/template @@ -1,7 +1,7 @@ # Template file for 'ddcci-dkms' pkgname=ddcci-dkms version=0.4.2 -revision=1 +revision=2 depends="dkms" short_desc="Pair of Linux kernel drivers for DDC/CI monitors (DKMS)" maintainer="Subhaditya Nath " @@ -15,6 +15,7 @@ do_install() { vdoc README.md rm LICENSE README.md + rm -f *.patch vmkdir usr/src/ddcci-${version} vcopy "*" usr/src/ddcci-${version} }