staging: comedi: dt282x: remove DT2821_SIZE define
This define is only used in the comedi_request_region() call to specify the size of the I/O region. Remove it and just open code the value. 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>
This commit is contained in:
parent
cb3d0d3996
commit
c53a62f64a
1 changed files with 1 additions and 3 deletions
|
|
@ -63,8 +63,6 @@ Notes:
|
|||
|
||||
#include "comedi_fc.h"
|
||||
|
||||
#define DT2821_SIZE 0x10
|
||||
|
||||
/*
|
||||
* Registers in the DT282x
|
||||
*/
|
||||
|
|
@ -1197,7 +1195,7 @@ static int dt282x_attach(struct comedi_device *dev, struct comedi_devconfig *it)
|
|||
int ret;
|
||||
int i;
|
||||
|
||||
ret = comedi_request_region(dev, it->options[0], DT2821_SIZE);
|
||||
ret = comedi_request_region(dev, it->options[0], 0x10);
|
||||
if (ret)
|
||||
return ret;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue