public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: H Hartley Sweeten <hartleys@visionengravers.com>
To: Linux Kernel <linux-kernel@vger.kernel.org>
Cc: <devel@driverdev.osuosl.org>, <abbotti@mev.co.uk>,
	<gregkh@linuxfoundation.org>
Subject: [PATCH 00/30] staging: comedi: move 'struct pci_dev *' into comedi_device
Date: Wed, 11 Jul 2012 14:47:47 -0700	[thread overview]
Message-ID: <201207111447.47402.hartleys@visionengravers.com> (raw)

All the comedi pci drivers have a struct pci_dev * in their private
data to hold the pointer to the pci device. Some of the drivers only
have private data because of this pointer.

Move the variable into the comedi_device struct and remove the private
data for the drivers that no longer need it.

This only updates the drivers that have been cleaned up enough or only
need simple changes to make the conversion. The other comedi pci drivers
will be converted to use the common pci_dev pointer as they are cleaned
up.

The cb_pcidio and dyna_pci10xx drivers have a bit of additional cleanup
to remove some of the unneeded private data variables and to use the
comedi_device iobase variable.

H Hartley Sweeten (30):
  staging: comedi: add pci_dev pointer to comedi_device
  staging: comedi: adl_pci6208: use comedi_device pci_dev pointer
  staging: comedi: adl_pci7230: use comedi_device pci_dev pointer
  staging: comedi: adl_pci7230: remove private data
  staging: comedi: adl_pci7296: use comedi_device pci_dev pointer
  staging: comedi: adl_pci7296: remove private data
  staging: comedi: adl_pci7432: use comedi_device pci_dev pointer
  staging: comedi: adl_pci7432: remove private data
  staging: comedi: adl_pci8164: use comedi_device pci_dev pointer
  staging: comedi: adl_pci8164: remove private data
  staging: comedi: adl_pci9111: use comedi_device pci_dev pointer
  staging: comedi: adl_pci9118: use comedi_device pci_dev pointer
  staging: comedi: cb_pcidas: use comedi_device pci_dev pointer
  staging: comedi: cb_pcidio: factor out the "find pci device" code
  staging: comedi: cb_pcidio: cleanup the "find pci device" code
  staging: comedi: cb_pcidio: use comedi_device pci_dev pointer
  staging: comedi: cb_pcidio: use comedi_device iobase
  staging: comedi: cb_pcidio: remove private data
  staging: comedi: contec_pci_dio: factor out the "find pci device"
    code
  staging: comedi: contec_pci_dio: cleanup the "find pci device" code
  staging: comedi: contec_pci_dio: use comedi_device pci_dev pointer
  staging: comedi: contec_pci_dio: remove private data
  staging: comedi: dyna_pci10xx: factor out the "find pci device" code
  staging: comedi: dyna_pci10xx: cleanup the "find pci device" code
  staging: comedi: dyna_pci10xx: use comedi_device pci_dev pointer
  staging: comedi: dyna_pci10xx: remove unused variables in the private
    data
  staging: comedi: dyna_pci10xx: use comedi_device iobase
  staging: comedi: ke_counter: factor out the "find pci device" code
  staging: comedi: ke_counter: cleanup the "find pci device" code
  staging: comedi: contec_pci_dio: use comedi_device pci_dev pointer

 drivers/staging/comedi/comedidev.h              |   2 +
 drivers/staging/comedi/drivers/adl_pci6208.c    |  17 ++--
 drivers/staging/comedi/drivers/adl_pci7230.c    |  24 ++---
 drivers/staging/comedi/drivers/adl_pci7296.c    |  24 ++---
 drivers/staging/comedi/drivers/adl_pci7432.c    |  24 ++---
 drivers/staging/comedi/drivers/adl_pci8164.c    |  24 ++---
 drivers/staging/comedi/drivers/adl_pci9111.c    |  25 +++--
 drivers/staging/comedi/drivers/adl_pci9118.c    |  23 +++--
 drivers/staging/comedi/drivers/cb_pcidas.c      |  31 +++---
 drivers/staging/comedi/drivers/cb_pcidio.c      | 115 ++++++++---------------
 drivers/staging/comedi/drivers/contec_pci_dio.c | 119 +++++++++++------------
 drivers/staging/comedi/drivers/dyna_pci10xx.c   | 120 +++++++++---------------
 drivers/staging/comedi/drivers/ke_counter.c     | 108 +++++++++------------
 13 files changed, 258 insertions(+), 398 deletions(-)

-- 
1.7.11


             reply	other threads:[~2012-07-11 21:48 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-07-11 21:47 H Hartley Sweeten [this message]
2012-07-12  8:55 ` [PATCH 00/30] staging: comedi: move 'struct pci_dev *' into comedi_device Ian Abbott
2012-07-12  9:02   ` Alan Cox
2012-07-12  9:02     ` Ian Abbott

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=201207111447.47402.hartleys@visionengravers.com \
    --to=hartleys@visionengravers.com \
    --cc=abbotti@mev.co.uk \
    --cc=devel@driverdev.osuosl.org \
    --cc=gregkh@linuxfoundation.org \
    --cc=linux-kernel@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