All of lore.kernel.org
 help / color / mirror / Atom feed
From: Stas Sergeev <stsp@aknet.ru>
To: Linux and Kernel Video <video4linux-list@redhat.com>
Subject: [patch] add video_nr module param to gspca
Date: Sat, 10 Jan 2009 21:53:14 +0300	[thread overview]
Message-ID: <4968EE9A.5040901@aknet.ru> (raw)

[-- 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

             reply	other threads:[~2009-01-10 18:51 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-01-10 18:53 Stas Sergeev [this message]
2009-01-11 19:25 ` [patch] add video_nr module param to gspca 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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4968EE9A.5040901@aknet.ru \
    --to=stsp@aknet.ru \
    --cc=video4linux-list@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.