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)
commit5891b5b2aafda9f0013b3bf46ea12d41e094f1bf
tree36136aa91055521284b4043733928bfc40cc6620
parent629af2407d78b3cda77856fd7f5b000d24d7e12f
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