All of lore.kernel.org
 help / color / mirror / Atom feed
From: Joe Perches <joe@perches.com>
To: "Rafał Miłecki" <zajec5@gmail.com>
Cc: linux-wireless@vger.kernel.org,
	"John W. Linville" <linville@tuxdriver.com>,
	"Michael Büsch" <mb@bu3sch.de>,
	"Arend van Spriel" <arend@broadcom.com>,
	"Larry Finger" <Larry.Finger@lwfinger.net>,
	"George Kashperko" <george@znau.edu.ua>,
	b43-dev@lists.infradead.org
Subject: Re: [RFC][PATCH] bcmai: introduce AI driver
Date: Tue, 05 Apr 2011 12:35:37 -0700	[thread overview]
Message-ID: <1302032137.3969.10.camel@Joe-Laptop> (raw)
In-Reply-To: <1302033463-1846-1-git-send-email-zajec5@gmail.com>

On Tue, 2011-04-05 at 21:57 +0200, Rafał Miłecki wrote:
> Signed-off-by: Rafał Miłecki <zajec5@gmail.com>

Just some trivia.

> diff --git a/drivers/bcmai/b43_pci_ai_bridge.c b/drivers/bcmai/b43_pci_ai_bridge.c
[]
> +#include <linux/bcmai/bcmai.h>
> +#include <linux/bcmai/bcmai_regs.h>
> +#include <linux/pci.h>
> +
> +static const struct pci_device_id b43_pci_ai_bridge_tbl[] = {

DEFINE_PCI_DEVICE_TABLE

> diff --git a/drivers/bcmai/core.c b/drivers/bcmai/core.c
[]
> +		bcmai_err("Power control not implemented!\n");
[]
> diff --git a/include/linux/bcmai/bcmai.h b/include/linux/bcmai/bcmai.h
[]
> +#define bcmai_info(fmt, args...)	printk(KERN_INFO "bcmai: " fmt, ##args)
> +#ifdef CONFIG_BCMAI_DEBUG
> +#define bcmai_dbg(fmt, args...)		printk(KERN_DEBUG "bcmai debug: " fmt, ##args)
> +#else
> +#define bcmai_dbg(fmt, args...)		do { } while (0)
> +#endif
> +#define bcmai_err(fmt, args...)		printk(KERN_ERR "bcmai error: " fmt, ##args)

I think there's very little value in prefixing
"error" and "debug" in front of equivalent
KERN_<level> message levels.

I think you might as well just use pr_<level>
and pr_fmt.

> diff --git a/include/linux/mod_devicetable.h b/include/linux/mod_devicetable.h
[]
> +/* AI core, see drivers/bcmai/ */
> +struct bcmai_device_id {
> +	__u16	manuf;
> +	__u16	id;
> +	__u8	rev;
> +};

Do some of these structs need __packed declarations?



  parent reply	other threads:[~2011-04-05 19:35 UTC|newest]

Thread overview: 109+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-04-05 19:57 [RFC][PATCH] bcmai: introduce AI driver Rafał Miłecki
2011-04-05 19:57 ` Rafał Miłecki
2011-04-05 19:25 ` Rafał Miłecki
2011-04-05 19:25   ` Rafał Miłecki
2011-04-05 19:29 ` Michael Büsch
2011-04-05 19:29   ` Michael Büsch
2011-04-05 19:35 ` Joe Perches [this message]
2011-04-05 20:15   ` Rafał Miłecki
2011-04-05 20:15     ` Rafał Miłecki
2011-04-05 20:25     ` Michael Büsch
2011-04-05 20:25       ` Michael Büsch
2011-04-05 22:30       ` [PATCH] ssb: Use pr_fmt and pr_<level>, remove CONFIG_SSB_SILENT Joe Perches
2011-04-05 20:37     ` [RFC][PATCH] bcmai: introduce AI driver Joe Perches
2011-04-05 20:50     ` Larry Finger
2011-04-05 20:50       ` Larry Finger
2011-04-06 14:18 ` Arend van Spriel
2011-04-06 14:18   ` Arend van Spriel
2011-04-06 18:02   ` Rafał Miłecki
2011-04-06 18:02     ` Rafał Miłecki
2011-04-06 18:02     ` Rafał Miłecki
2011-04-06 20:25     ` Arend van Spriel
2011-04-06 20:25       ` Arend van Spriel
2011-04-06 20:40       ` Rafał Miłecki
2011-04-06 20:40         ` Rafał Miłecki
2011-04-06 20:40         ` Rafał Miłecki
2011-04-06 20:42         ` Rafał Miłecki
2011-04-06 20:42           ` Rafał Miłecki
2011-04-06 20:42           ` Rafał Miłecki
2011-04-06 20:57           ` Michael Büsch
2011-04-06 20:57             ` Michael Büsch
2011-04-06 20:57             ` Michael Büsch
2011-04-06 21:01             ` Rafał Miłecki
2011-04-06 21:01               ` Rafał Miłecki
2011-04-06 21:01               ` Rafał Miłecki
2011-04-06 21:08               ` Michael Büsch
2011-04-06 21:08                 ` Michael Büsch
2011-04-06 21:08                 ` Michael Büsch
2011-04-06 21:12                 ` Rafał Miłecki
2011-04-06 21:12                   ` Rafał Miłecki
2011-04-06 21:12                   ` Rafał Miłecki
2011-04-06 21:18                   ` George Kashperko
2011-04-06 21:18                     ` George Kashperko
2011-04-06 23:20                     ` Rafał Miłecki
2011-04-06 23:20                       ` Rafał Miłecki
2011-04-06 23:20                       ` Rafał Miłecki
2011-04-07  0:00                       ` George Kashperko
2011-04-07  0:00                         ` George Kashperko
2011-04-07  0:54                         ` Rafał Miłecki
2011-04-07  0:54                           ` Rafał Miłecki
2011-04-07  0:54                           ` Rafał Miłecki
2011-04-07  1:02                           ` George Kashperko
2011-04-07  1:02                             ` George Kashperko
2011-04-07  7:54                           ` Michael Büsch
2011-04-07  7:54                             ` Michael Büsch
2011-04-07  7:54                             ` Michael Büsch
2011-04-07  8:58                             ` Arend van Spriel
2011-04-07  8:58                               ` Arend van Spriel
2011-04-07 18:50                               ` George Kashperko
2011-04-07 18:50                                 ` George Kashperko
2011-04-07  9:55                             ` Rafał Miłecki
2011-04-07  9:55                               ` Rafał Miłecki
2011-04-07  9:55                               ` Rafał Miłecki
2011-04-07 18:36                               ` George Kashperko
2011-04-07 18:36                                 ` George Kashperko
2011-04-06 21:20                   ` Michael Büsch
2011-04-06 21:20                     ` Michael Büsch
2011-04-06 21:20                     ` Michael Büsch
2011-04-08 16:56   ` Rafał Miłecki
2011-04-08 16:56     ` Rafał Miłecki
2011-04-08 16:56     ` Rafał Miłecki
2011-04-08 17:09     ` Rafał Miłecki
2011-04-08 17:09       ` Rafał Miłecki
2011-04-08 17:09       ` Rafał Miłecki
2011-04-08 17:14       ` Rafał Miłecki
2011-04-08 17:14         ` Rafał Miłecki
2011-04-08 17:14         ` Rafał Miłecki
2011-04-08 17:24     ` Arend van Spriel
2011-04-08 17:24       ` Arend van Spriel
2011-04-08 17:27       ` Rafał Miłecki
2011-04-08 17:27         ` Rafał Miłecki
2011-04-08 17:27         ` Rafał Miłecki
2011-04-08 17:28         ` Arend van Spriel
2011-04-08 17:28           ` Arend van Spriel
2011-04-08 17:31           ` Rafał Miłecki
2011-04-08 17:31             ` Rafał Miłecki
2011-04-08 17:31             ` Rafał Miłecki
2011-04-09  7:10       ` George Kashperko
2011-04-09  7:10         ` George Kashperko
2011-04-09 11:01         ` Arend van Spriel
2011-04-09 11:01           ` Arend van Spriel
2011-04-10  8:01   ` Pavel Machek
2011-04-10  8:01     ` Pavel Machek
2011-04-10  8:05     ` Rafał Miłecki
2011-04-10  8:05       ` Rafał Miłecki
2011-04-10  8:05       ` Rafał Miłecki
2011-04-10  8:24       ` Pavel Machek
2011-04-10  8:24         ` Pavel Machek
2011-04-10  8:30         ` Rafał Miłecki
2011-04-10  8:30           ` Rafał Miłecki
2011-04-10  8:30           ` Rafał Miłecki
2011-04-10  9:33           ` Arend van Spriel
2011-04-10  9:33             ` Arend van Spriel
2011-04-10 11:32             ` Rafał Miłecki
2011-04-10 11:32               ` Rafał Miłecki
2011-04-10 11:32               ` Rafał Miłecki
2011-04-10 14:36               ` Arend van Spriel
2011-04-10 14:36                 ` Arend van Spriel
2011-04-10 16:11             ` George Kashperko
2011-04-10 16:11               ` George Kashperko

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=1302032137.3969.10.camel@Joe-Laptop \
    --to=joe@perches.com \
    --cc=Larry.Finger@lwfinger.net \
    --cc=arend@broadcom.com \
    --cc=b43-dev@lists.infradead.org \
    --cc=george@znau.edu.ua \
    --cc=linux-wireless@vger.kernel.org \
    --cc=linville@tuxdriver.com \
    --cc=mb@bu3sch.de \
    --cc=zajec5@gmail.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.