public inbox for linux-media@vger.kernel.org
 help / color / mirror / Atom feed
* [patch] add video_nr module param to gspca
@ 2009-01-10 18:53 Stas Sergeev
  2009-01-11 19:25 ` Jean-Francois Moine
  2009-01-11 23:19 ` Mauro Carvalho Chehab
  0 siblings, 2 replies; 5+ messages in thread
From: Stas Sergeev @ 2009-01-10 18:53 UTC (permalink / raw)
  To: Linux and Kernel Video

[-- Attachment #1: Type: text/plain, Size: 334 bytes --]

Hi.

The attached patch adds the
module_param for video_nr to
the gspca driver.
The patch is completely untested
as I don't use any webcam myself.
Its just that a friend of mine
complained about an inability to
set the device number for gspca
and I hope this patch can solve
that problem.

Signed-off-by: Stas Sergeev <stsp@aknet.ru>

[-- Attachment #2: gspca_nr.diff --]
[-- Type: text/x-patch, Size: 423 bytes --]

--- a/drivers/media/video/gspca/gspca.c	2008-12-06 23:39:56.000000000 +0300
+++ b/drivers/media/video/gspca/gspca.c	2009-01-10 19:29:49.000000000 +0300
@@ -48,6 +48,8 @@
 #define DRIVER_VERSION_NUMBER	KERNEL_VERSION(2, 3, 0)
 
 static int video_nr = -1;
+module_param(video_nr, int, 0);
+MODULE_PARM_DESC(video_nr, "video device to register (0=/dev/video0, etc)");
 
 #ifdef GSPCA_DEBUG
 int gspca_debug = D_ERR | D_PROBE;

[-- Attachment #3: Type: text/plain, Size: 164 bytes --]

--
video4linux-list mailing list
Unsubscribe mailto:video4linux-list-request@redhat.com?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/video4linux-list

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2009-01-12 11:26 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-01-10 18:53 [patch] add video_nr module param to gspca Stas Sergeev
2009-01-11 19:25 ` Jean-Francois Moine
2009-01-11 20:17   ` Stas Sergeev
     [not found]     ` <20090112085103.0e84305a@free.fr>
2009-01-12 10:51       ` Stas Sergeev
2009-01-11 23:19 ` Mauro Carvalho Chehab

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox