lkml.org 
[lkml]   [2003]   [Apr]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] aha1740 update
On Thu, Apr 24, 2003 at 02:03:32PM +0200, Marc Zyngier wrote:
> * forms part of the process of creating an executable the information
> @@ -44,6 +47,11 @@
> #include <asm/system.h>
> #include <asm/io.h>
>
> +#include <linux/init.h>
> +#include <linux/device.h>
> +#include <linux/eisa.h>
> +#include <linux/dma-mapping.h>

If there's a chance put this before the <asm/*.h> includes.

> +/* This should really fit in driver/scsi/scsi.h, along with
> + * scsi_to_{pci,sbus}_dma_dir.... */

Right. Please submit a patch to James.

> +/* Eventually this will go into an include file, but this will be later */

No. (okay, you just moved it..)

> +static Scsi_Host_Template driver_template = AHA1740;

Please initialize the struct here instead of the macro obsfucation.
(again not yhour fault, but you're touching the driver so please
clean it up while at it).

> -#include "scsi_module.c"
> +static __init int aha1740_init (void)
> +{
> + driver_template.module = THIS_MODULE;

Please do this at compile-time.

> /* Okay, you made it all the way through. As of this writing, 3/31/93, I'm
> brad@saturn.gaylord.com or brad@bradpc.gaylord.com. I'll try to help as time

This comment looks a _bit_ outdated to me, what about nuking it?

Well, and as you're touching the driver big time a cleanup to follow
Documentation/CondingStyle would be nice.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:34    [W:1.760 / U:1.160 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site