[<prev] [next>] [day] [month] [year] [list]
Message-Id: <20250723095314.16975-1-imenjaziri@outlook.com>
Date: Wed, 23 Jul 2025 10:53:14 +0100
From: Imene Jaziri <imenjazirii18@...il.com>
To: laurent.pinchart@...asonboard.com,
mchehab@...nel.org
Cc: linux-media@...r.kernel.org,
linux-kernel@...r.kernel.org,
Imene Jaziri <imenjaziri@...look.com>
Subject: [PATCH] Add changes to uvcvideo driver
Add a pr_info() in the uvc_probe function to trace when the uvcvideo driver is loaded.
This is for learning purposes.
Signed-off-by: Imene Jaziri <imenjaziri@...look.com>
---
drivers/media/usb/uvc/uvc_driver.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/drivers/media/usb/uvc/uvc_driver.c b/drivers/media/usb/uvc/uvc_driver.c
index da24a655ab68..4e5d1d636640 100644
--- a/drivers/media/usb/uvc/uvc_driver.c
+++ b/drivers/media/usb/uvc/uvc_driver.c
@@ -2170,7 +2170,6 @@ static int uvc_probe(struct usb_interface *intf,
(const struct uvc_device_info *)id->driver_info;
int function;
int ret;
-
/* Allocate memory for the device and initialize it. */
dev = kzalloc(sizeof(*dev), GFP_KERNEL);
if (dev == NULL)
@@ -2188,7 +2187,7 @@ static int uvc_probe(struct usb_interface *intf,
dev->info = info ? info : &uvc_quirk_none;
dev->quirks = uvc_quirks_param == -1
? dev->info->quirks : uvc_quirks_param;
-
+ pr_info("I changed uvcvideo driver in the Linux Kernel\n");
if (id->idVendor && id->idProduct)
uvc_dbg(dev, PROBE, "Probing known UVC device %s (%04x:%04x)\n",
udev->devpath, id->idVendor, id->idProduct);
--
2.34.1
Powered by blists - more mailing lists