]> git.baikalelectronics.ru Git - kernel.git/commit
staging: comedi: pcm3724: tidy up register map defines
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Thu, 1 Oct 2015 18:59:28 +0000 (11:59 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 13 Oct 2015 04:14:32 +0000 (21:14 -0700)
commit67126fcb37361b457ae150c81e0d265e7da4ad83
tree36136aa91055521284b4043733928bfc40cc6620
parent0a4fd98f30d4ab96853614e314b184f238c09421
staging: comedi: pcm3724: tidy up register map defines

For aesthetics, rename the register map defines so they have namespace
associated with the driver and use the BIT macro to define the bits.

Add the missing defines for the registers and use them to remove the
magic values from the driver.

Add a comment about the extra registers to explain why this driver
doesn't just use the standard 8255 driver instead.

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