From 0c44c8fecb5b05302624ee89b2f0d3d03d7ce6d0 Mon Sep 17 00:00:00 2001 From: korneliuszo Date: Thu, 1 Feb 2024 17:35:37 +0100 Subject: [PATCH] Fix for build on post 6.2 --- main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.c b/main.c index a7a9a8a..f3e1576 100644 --- a/main.c +++ b/main.c @@ -68,7 +68,7 @@ static DEFINE_MUTEX(minor_lock); /* Protect idr accesses */ static struct class *mtp02_class = NULL; -static int mtp02_uevent(struct device *dev, struct kobj_uevent_env *env) +static int mtp02_uevent(const struct device *dev, struct kobj_uevent_env *env) { add_uevent_var(env, "DEVMODE=%#o", 0666); return 0;