Commit c53a62f6 authored by H Hartley Sweeten's avatar H Hartley Sweeten Committed by Greg Kroah-Hartman

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: default avatarH Hartley Sweeten <hsweeten@visionengravers.com>
Reviewed-by: default avatarIan Abbott <abbotti@mev.co.uk>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent cb3d0d39
......@@ -63,8 +63,6 @@ Configuration options:
#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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment