staging: comedi: ni_at_a2150: use CMDF_ROUND_...
authorIan Abbott <abbotti@mev.co.uk>
Wed, 3 Sep 2014 12:45:55 +0000 (13:45 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 8 Sep 2014 20:50:15 +0000 (13:50 -0700)
Replace use of the `TRIG_ROUND_...` macros with the new names
`CMDF_ROUND_...`.  The numeric values are unchanged.

Signed-off-by: Ian Abbott <abbotti@mev.co.uk>
Reviewed-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/drivers/ni_at_a2150.c

index 4ff412d5e71d1810c6ac42867a0eb6584eb7bd3b..d4904907bb891a0041eb3c72fa430db4affccb6b 100644 (file)
@@ -326,8 +326,8 @@ static int a2150_get_timing(struct comedi_device *dev, unsigned int *period,
                        }
                }
        }
-       switch (flags & TRIG_ROUND_MASK) {
-       case TRIG_ROUND_NEAREST:
+       switch (flags & CMDF_ROUND_MASK) {
+       case CMDF_ROUND_NEAREST:
        default:
                /*  if least upper bound is better approximation */
                if (lub - *period < *period - glb)
@@ -335,10 +335,10 @@ static int a2150_get_timing(struct comedi_device *dev, unsigned int *period,
                else
                        *period = glb;
                break;
-       case TRIG_ROUND_UP:
+       case CMDF_ROUND_UP:
                *period = lub;
                break;
-       case TRIG_ROUND_DOWN:
+       case CMDF_ROUND_DOWN:
                *period = glb;
                break;
        }