public inbox for linux-scsi@vger.kernel.org
 help / color / mirror / Atom feed
From: Christoph Hellwig <hch@infradead.org>
To: Jeremy Higdon <jeremy@sgi.com>
Cc: linux-scsi@vger.kernel.org
Subject: Re: [PATCH] add spi attributes to qla1280
Date: Wed, 11 Aug 2004 08:11:18 +0100	[thread overview]
Message-ID: <20040811081118.A26256@infradead.org> (raw)
In-Reply-To: <20040810230552.GA26569@sgi.com>; from jeremy@sgi.com on Tue, Aug 10, 2004 at 04:05:52PM -0700

> +	if (ha->pdev->device == PCI_DEVICE_ID_QLOGIC_ISP12160 ||
> +	    ha->pdev->device == PCI_DEVICE_ID_QLOGIC_ISP10160)
> +		is1x160 = 1;
> +	else
> +		is1x160 = 0;

The driver in James' tree has most of my 1040-support patches merged,
sp please use the apporpinquate IS_ISP* macros like the rest of the drivers
does, and please handle the 1040 aswell in that code.

> +static struct scsi_transport_template *qla1280_transport_template = NULL;

No need to initialize to NULL here.

>  static int __devinit
>  qla1280_probe_one(struct pci_dev *pdev, const struct pci_device_id *id)
>  {
> @@ -4758,6 +4778,7 @@
>  	host->max_id = MAX_TARGETS;
>  	host->max_sectors = 1024;
>  	host->unique_id = host->host_no;
> +	host->transportt = qla1280_transport_template;
>  
>  #if LINUX_VERSION_CODE < 0x020545
>  	host->select_queue_depths = qla1280_select_queue_depth;
> @@ -4890,6 +4911,12 @@
>  	.remove		= __devexit_p(qla1280_remove_one),
>  };
>  
> +static struct spi_function_template qla1280_transport_functions = {
> +	.show_period = 1,
> +	.show_offset = 1,
> +};

Any chance you could declare this just below the host template?  that keeps
the code better organized.


  parent reply	other threads:[~2004-08-11  7:11 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-08-10 23:05 [PATCH] add spi attributes to qla1280 Jeremy Higdon
2004-08-11  6:31 ` Jes Sorensen
2004-08-11  7:11 ` Christoph Hellwig [this message]
2004-08-11 21:56   ` Jeremy Higdon
2004-08-11 22:05     ` Christoph Hellwig
2004-08-11 22:16       ` Jeremy Higdon
2004-08-11 22:22         ` Christoph Hellwig
2004-08-12  5:29           ` Jeremy Higdon
2004-08-12  9:08             ` Christoph Hellwig

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=20040811081118.A26256@infradead.org \
    --to=hch@infradead.org \
    --cc=jeremy@sgi.com \
    --cc=linux-scsi@vger.kernel.org \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox