[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <1196806495.10819.16.camel@localhost>
Date: Tue, 04 Dec 2007 14:14:55 -0800
From: Joe Perches <joe@...ches.com>
To: Francois Romieu <romieu@...zoreil.com>
Cc: jeff@...zik.org, Pekka Enberg <penberg@...helsinki.fi>,
Sorbica Shieh <sorbica@...lus.com.tw>,
Jesse Huang <jesse@...lus.com.tw>,
Andrew Morton <akpm@...ux-foundation.org>,
netdev@...r.kernel.org
Subject: Re: Pull request for 'ipg' branch
On Tue, 2007-12-04 at 22:45 +0100, Francois Romieu wrote:
> diff --git a/drivers/net/ipg.c b/drivers/net/ipg.c
> index dbd23bb..f736c35 100644
> --- a/drivers/net/ipg.c
> +++ b/drivers/net/ipg.c
> -MODULE_DESCRIPTION("IC Plus IP1000 Gigabit Ethernet Adapter Linux Driver "
> - DrvVer);
> +MODULE_DESCRIPTION("IC Plus IP1000 Gigabit Ethernet Adapter Linux Driver");
> MODULE_LICENSE("GPL");
> - if ((sp->LED_Mode & 0x01) == 1)
> + if ((sp->led_mode & 0x01) == 1)
I think the use of hex and decimal constants is odd.
I think "if (sp->led_mode & 0x01)" is better.
> diff --git a/drivers/net/ipg.h b/drivers/net/ipg.h
> index d5d092c..cda5388 100644
> --- a/drivers/net/ipg.h
> +++ b/drivers/net/ipg.h
> /* Assign IPG_APPEND_FCS_ON_TX > 0 for auto FCS append on TX. */
> -#define IPG_APPEND_FCS_ON_TX TRUE
> +#define IPG_APPEND_FCS_ON_TX 1
Why not true and false?
> @@ -753,8 +732,7 @@ enum ipg_regs {
> * Miscellaneous macros.
> */
>
> -/* Marco for printing debug statements.
> -# define IPG_DDEBUG_MSG(args...) printk(KERN_DEBUG "IPG: " ## args) */
> +/* Marco for printing debug statements. */
Macros
cheers, Joe
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists