staging: comedi: 8255_pci: check BAR resource type directly
authorIan Abbott <abbotti@mev.co.uk>
Fri, 12 Apr 2013 12:57:54 +0000 (13:57 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 12 Apr 2013 22:12:42 +0000 (15:12 -0700)
commitfed9fd2cc6ac2b01f928bef3ce62a9d8058f514d
tree05b28e32fb9253047c7faf3dd39fd93dd8417168
parentaee351b28ccc7b966a14c8a8e146c6b74d4717cc
staging: comedi: 8255_pci: check BAR resource type directly

This driver handles one or more 8255 DIO subdevices mapped contiguously
at the start of a PCI BAR resource.  The resource may be a portio
resource or an mmio resource.  The driver currently checks the `is_mmio`
member of the matching element of `pci_8255_boards[]` to determine the
type of resource.  Rather than doing that, get the information straight
from the horse's mouth by checking the resource flags of the PCI BAR
and eliminate the `is_mmio` member.

Signed-off-by: Ian Abbott <abbotti@mev.co.uk>
Reviewed-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/drivers/8255_pci.c
This page took 0.025814 seconds and 5 git commands to generate.