]> git.baikalelectronics.ru Git - kernel.git/commit
staging: comedi: adv_pci1723: tidy up DIO io_bits initialization
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Fri, 21 Nov 2014 21:22:33 +0000 (14:22 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 26 Nov 2014 23:40:00 +0000 (15:40 -0800)
commitc77d20bc8620dae382ff1f76e6a651a0b08205ec
tree8fd1cda929be121eadbc1ad51bc258f9e8961c44
parenta445fc57376d38ce6cbe1b2e6cd7c004fcae0808
staging: comedi: adv_pci1723: tidy up DIO io_bits initialization

Tidy up the code that determines the initial io_bits (direction) of the
digital I/O subdevice and remove the magic numbers.

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/adv_pci1723.c