Skip to content

Commit de81927

Browse files
committed
Merge branch 'master' into 'master'
Fix build for Linux 5.15 and bump version Closes torvalds#25 See merge request ddcci-driver-linux/ddcci-driver-linux!8
2 parents e2ad17f + bf9d798 commit de81927

File tree

6 files changed

+18
-7
lines changed

6 files changed

+18
-7
lines changed

Makefile.dkms

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
# along with ddcci-driver-linux. If not, see <http://www.gnu.org/licenses/>.
1717

1818
PACKAGE_NAME := ddcci
19-
PACKAGE_VERSION := 0.4.1
19+
PACKAGE_VERSION := 0.4.2
2020

2121
install:
2222
dkms add .
@@ -28,7 +28,7 @@ uninstall:
2828
rm -r /usr/src/$(PACKAGE_NAME)-$(PACKAGE_VERSION) || true
2929

3030
load:
31-
@test -n "$$(dkms status ddcci/0.4.1)" || { echo 'Please run `make -f Makefile.dkms install` first.'; false; }
31+
@test -n "$$(dkms status ddcci/0.4.2)" || { echo 'Please run `make -f Makefile.dkms install` first.'; false; }
3232
modprobe ddcci
3333

3434
unload:

ddcci-backlight/Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
# along with ddcci-driver-linux. If not, see <http://www.gnu.org/licenses/>.
1717

1818
MODULE_NAME := ddcci-backlight
19-
MODULE_VERSION := 0.4.1
19+
MODULE_VERSION := 0.4.2
2020

2121
KVER := $(shell uname -r)
2222
LIB_MODULES_PATH := /lib/modules

ddcci-backlight/ddcci-backlight.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -407,7 +407,7 @@ MODULE_PARM_DESC(convenience_symlink, "add convenience symlink \"ddcci_backlight
407407

408408
MODULE_AUTHOR("Christoph Grenz");
409409
MODULE_DESCRIPTION("DDC/CI generic monitor backlight driver");
410-
MODULE_VERSION("0.4.1");
410+
MODULE_VERSION("0.4.2");
411411
MODULE_LICENSE("GPL");
412412

413413
MODULE_ALIAS("ddcci:monitor-*-*-*-*");

ddcci/Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
# along with ddcci-driver-linux. If not, see <http://www.gnu.org/licenses/>.
1717

1818
MODULE_NAME := ddcci
19-
MODULE_VERSION := 0.4.1
19+
MODULE_VERSION := 0.4.2
2020

2121
KVER := $(shell uname -r)
2222
LIB_MODULES_PATH := /lib/modules

ddcci/ddcci.c

+12-1
Original file line numberDiff line numberDiff line change
@@ -1281,14 +1281,25 @@ static int ddcci_device_remove(struct device *dev)
12811281
return ret;
12821282
}
12831283

1284+
#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 15, 0)
1285+
static void ddcci_device_remove_void(struct device *dev)
1286+
{
1287+
ddcci_device_remove(dev);
1288+
}
1289+
#endif
1290+
12841291
/**
12851292
* DDCCI bus type structure
12861293
*/
12871294
struct bus_type ddcci_bus_type = {
12881295
.name = "ddcci",
12891296
.match = ddcci_device_match,
12901297
.probe = ddcci_device_probe,
1298+
#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 15, 0)
1299+
.remove = ddcci_device_remove_void
1300+
#else
12911301
.remove = ddcci_device_remove
1302+
#endif
12921303
};
12931304

12941305
/* Main I2C driver */
@@ -1880,5 +1891,5 @@ MODULE_PARM_DESC(autoprobe_addrs, "internal dependent device addresses to autopr
18801891
/* Module description */
18811892
MODULE_AUTHOR("Christoph Grenz");
18821893
MODULE_DESCRIPTION("DDC/CI bus driver");
1883-
MODULE_VERSION("0.4.1");
1894+
MODULE_VERSION("0.4.2");
18841895
MODULE_LICENSE("GPL");

dkms.conf

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
PACKAGE_VERSION="0.4.1"
1+
PACKAGE_VERSION="0.4.2"
22
PACKAGE_NAME="ddcci"
33
CLEAN="make clean"
44
BUILT_MODULE_NAME[0]="ddcci"

0 commit comments

Comments
 (0)