From: Daniel Mack <daniel@zonque.org>
To: Mario Kicherer <dev@kicherer.org>, alsa-devel@alsa-project.org
Cc: tiwai@suse.de, clemens@ladisch.de
Subject: Re: [PATCH v8] MIDI driver for Behringer BCD2000 USB device
Date: Wed, 02 Apr 2014 18:34:33 +0200 [thread overview]
Message-ID: <533C3C19.2010400@zonque.org> (raw)
In-Reply-To: <1396454213-10863-1-git-send-email-dev@kicherer.org>
Hi,
the only things I spotted are style nits ...
On 04/02/2014 05:56 PM, Mario Kicherer wrote:
> This patch adds initial support for the Behringer BCD2000 USB DJ controller.
> At the moment, only the MIDI part of the device is working, i.e. knobs,
> buttons and LEDs.
>
> I also plan to add support for the audio part, but I assume that this will
> require more effort than the rather simple MIDI interface. Progress can be
> tracked at https://github.com/anyc/snd-usb-bcd2000.
Text such as the lines starting here ...
>
> Daniel or Clemens: could I get another ACK on this? Thank you both!
>
> Best regards,
> Mario
>
> Changes since v7:
> - replaced snd_card_create with snd_card_new
>
> Changes since v6:
> - applied more style improvements
>
> Changes since v5:
> - use kernel bitmap functions for devices_used
>
> Changes since v4:
> - devices_used as array to support arbitrary number of SNDRV_CARDS
> - removed unused array "enable"
>
> Changes since v3:
> - applied style and snd_printk changes as suggested by Daniel Mack
>
> Changes since v2:
> - applied more changes from Daniel Mack and Clemens Ladisch
>
> Changes since v1:
> - fixed the various code style issues, thanks to Daniel Mack and
> checkpatch.pl.
... to here should go ...
> Signed-off-by: Mario Kicherer <dev@kicherer.org>
> ---
... here. IOW, Everything that is not supposed to become part of the
actual commit log message eventually has to be put underneath "---".
> +static struct usb_driver bcd2000_driver = {
> + .name = "snd-bcd2000",
> + .probe = bcd2000_probe,
> + .disconnect = bcd2000_disconnect,
> + .id_table = id_table,
> +};
Something's wrong with the indent here.
> +static int __init bcd2000_init(void)
> +{
> + int retval = 0;
> +
> + retval = usb_register(&bcd2000_driver);
> + if (retval)
> + pr_info(PREFIX "usb_register failed. Error: %d", retval);
> + return retval;
> +}
> +
> +static void __exit bcd2000_exit(void)
> +{
> + usb_deregister(&bcd2000_driver);
> +}
> +
> +module_init(bcd2000_init);
> +module_exit(bcd2000_exit);
You can replace all that with the module_usb_driver() helper function.
See include/linux/usb.h.
Other than that, it looks fine to me.
Thanks,
Daniel
prev parent reply other threads:[~2014-04-02 16:34 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-04-02 15:56 [PATCH v8] MIDI driver for Behringer BCD2000 USB device Mario Kicherer
2014-04-02 16:34 ` Daniel Mack [this message]
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=533C3C19.2010400@zonque.org \
--to=daniel@zonque.org \
--cc=alsa-devel@alsa-project.org \
--cc=clemens@ladisch.de \
--cc=dev@kicherer.org \
--cc=tiwai@suse.de \
/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.