]> git.karo-electronics.de Git - karo-tx-linux.git/commit
staging: comedi: cb_pcidas: remove the PCI BAR index defines
authorH Hartley Sweeten <hartleys@visionengravers.com>
Wed, 27 Jun 2012 00:54:38 +0000 (17:54 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 6 Jul 2012 22:23:50 +0000 (15:23 -0700)
commit7302abef2ef3c6aae739f578a67504bb84974199
tree8c8a3249d661d9d35684b70a3eabb88391f94d17
parent9795f562bd72387da8c9e5bc99e2cce869aa1bc1
staging: comedi: cb_pcidas: remove the PCI BAR index defines

The defines for the "indices of the base address regions" don't
add much to the readability of the code. They are only used in
the pci_resource_start() calls to get the base address for
the various io regions and the names of the variables provide
adequate documentation.

Remove the defines and just use the open-coded values for the
BARs. Also, remove the incomplete comment above the initialization
of the variables.

Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Cc: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/drivers/cb_pcidas.c