From: Alexey Klimov <klimov.linux@gmail.com>
To: Andrey Panin <pazke@donpac.ru>
Cc: Anders Blomdell <anders.blomdell@control.lth.se>,
Jean-Francois Moine <moinejf@free.fr>,
Linux Media <linux-media@vger.kernel.org>,
linux-kernel@vger.kernel.org
Subject: Re: Topro 6800 webcam driver
Date: Tue, 07 Apr 2009 16:39:01 +0400 [thread overview]
Message-ID: <1239107942.23489.23.camel@tux.localhost> (raw)
In-Reply-To: <20090407111331.GA6618@ports.donpac.ru>
On Tue, 2009-04-07 at 15:13 +0400, Andrey Panin wrote:
> On 097, 04 07, 2009 at 11:41:32AM +0200, Anders Blomdell wrote:
<snip>
> > +static const struct sd_desc sd_desc = {
> > + .name = MODULE_NAME,
> > + .ctrls = sd_ctrls,
> > + .nctrls = ARRAY_SIZE(sd_ctrls),
> > + .config = sd_config,
> > + .init = sd_init,
> > + .start = sd_start,
> > + .stopN = sd_stopN,
> > + .pkt_scan = sd_pkt_scan,
> > + .querymenu = sd_querymenu,
> > +
> > +};
> > +
> > +static const __devinitdata struct usb_device_id device_table[] = {
> > + {USB_DEVICE(0x06a2, 0x0003)},
> > + {} /* Terminating entry */
> > +};
> > +
> > +MODULE_DEVICE_TABLE(usb, device_table);
> > +
> > +static int sd_probe(struct usb_interface *interface,
> > + const struct usb_device_id *id)
> > +{
> > + return gspca_dev_probe(interface, id, &sd_desc, sizeof(struct sd),
> > + THIS_MODULE);
> > +}
> > +
> > +static struct usb_driver tp6800_driver = {
> > + .name = MODULE_NAME,
> > + .id_table = device_table,
> > + .probe = sd_probe,
> > + .disconnect = gspca_disconnect,
> > +#ifdef CONFIG_PM
> > + .suspend = gspca_suspend,
> > + .resume = gspca_resume,
> > +#endif
> > +};
> > +
> > +/* Module loading and unloading */
> > +
> > +static int __init tp6800_init(void)
> > +{
> > + int result;
> > +
> > + result = usb_register(&tp6800_driver);
> > + if (result) {
> > + printk(KERN_INFO "%s usb_register_failed %d\n",
> > + MODULE_NAME, result);
> > + } else {
> > + printk(KERN_INFO "%s registered\n", MODULE_NAME);
> > + }
> > +
> > + return result;
> > +}
> > +
> > +static void __exit tp6800_exit(void)
> > +{
> > + usb_deregister(&tp6800_driver);
> > + printk(KERN_INFO "%s deregistered\n", MODULE_NAME);
> > +}
>
> Are these registered/deregistered messages really useful ?
Looks like that gspca-framework use PDEBUG() messages for that.
For example, t613.c contains this:
static void __exit sd_mod_exit(void)
{
usb_deregister(&sd_driver);
PDEBUG(D_PROBE, "deregistered");
}
--
Best regards, Klimov Alexey
next prev parent reply other threads:[~2009-04-07 12:39 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-04-07 9:41 Topro 6800 webcam driver Anders Blomdell
2009-04-07 11:13 ` Andrey Panin
2009-04-07 12:39 ` Alexey Klimov [this message]
2009-04-07 18:57 ` Anders Blomdell
2009-04-07 12:31 ` Alexey Klimov
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=1239107942.23489.23.camel@tux.localhost \
--to=klimov.linux@gmail.com \
--cc=anders.blomdell@control.lth.se \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-media@vger.kernel.org \
--cc=moinejf@free.fr \
--cc=pazke@donpac.ru \
/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.