Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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
Loading
Loading
Loading
Loading
+1 −3
Original line number Original line Diff line number Diff line
@@ -63,8 +63,6 @@ Configuration options:


#include "comedi_fc.h"
#include "comedi_fc.h"


#define DT2821_SIZE 0x10

/*
/*
 *    Registers in the DT282x
 *    Registers in the DT282x
 */
 */
@@ -1197,7 +1195,7 @@ static int dt282x_attach(struct comedi_device *dev, struct comedi_devconfig *it)
	int ret;
	int ret;
	int i;
	int i;


	ret = comedi_request_region(dev, it->options[0], DT2821_SIZE);
	ret = comedi_request_region(dev, it->options[0], 0x10);
	if (ret)
	if (ret)
		return ret;
		return ret;