]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
staging: comedi: cb_pcidas64: use CMDF_ROUND_...
authorIan Abbott <abbotti@mev.co.uk>
Wed, 3 Sep 2014 12:45:50 +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/cb_pcidas64.c

index f1b2744d29c25938351c4477f8654c54d27933cc..56069d699b20827f2c91d8a8f0b3f8c5a3d9216a 100644 (file)
@@ -1958,14 +1958,14 @@ static unsigned int get_divisor(unsigned int ns, unsigned int flags)
 {
        unsigned int divisor;
 
-       switch (flags & TRIG_ROUND_MASK) {
-       case TRIG_ROUND_UP:
+       switch (flags & CMDF_ROUND_MASK) {
+       case CMDF_ROUND_UP:
                divisor = (ns + TIMER_BASE - 1) / TIMER_BASE;
                break;
-       case TRIG_ROUND_DOWN:
+       case CMDF_ROUND_DOWN:
                divisor = ns / TIMER_BASE;
                break;
-       case TRIG_ROUND_NEAREST:
+       case CMDF_ROUND_NEAREST:
        default:
                divisor = (ns + TIMER_BASE / 2) / TIMER_BASE;
                break;