]> git.baikalelectronics.ru Git - kernel.git/commit
staging: comedi: drivers: re-do PLX PCI 9080 LBRDx register values
authorIan Abbott <abbotti@mev.co.uk>
Fri, 20 May 2016 13:49:10 +0000 (14:49 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 18 Jun 2016 03:59:52 +0000 (20:59 -0700)
commit87c0b97ad817589d81cde91118db1114560d4179
treee60ef41906643486e33b5de73556545754aea0e9
parente3cc28f8e745fda60a56c966356295b981717eb4
staging: comedi: drivers: re-do PLX PCI 9080 LBRDx register values

Replace the existing macros in "plx9080.h" that define values for the
LBRD0 and LBRD1 registers.  Use the prefix `PLX_LBRD_` for macros that
apply to both registers, `PLX_LBRD0_` for macros that apply only to the
LBRD0 register, and `PLX_LBRD1_` for macros that apply only to the LBRD1
register.  Make use of the `BIT(x)` and `GENMASK(h,l)` macros to define
the values.

Signed-off-by: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/drivers/plx9080.h