From: H Hartley Sweeten Date: Fri, 20 Jun 2014 20:12:42 +0000 (-0700) Subject: staging: comedi: dt282x: remove DT2821_SIZE define X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=c53a62f64a072ea1ba31aa657e5962cf2a8f360e;p=GitHub%2FLineageOS%2FG12%2Fandroid_kernel_amlogic_linux-4.9.git 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 Reviewed-by: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/comedi/drivers/dt282x.c b/drivers/staging/comedi/drivers/dt282x.c index cb12cca0f28f..3276c0738573 100644 --- a/drivers/staging/comedi/drivers/dt282x.c +++ b/drivers/staging/comedi/drivers/dt282x.c @@ -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;