Changed INSN_GET_PWM_STATUS to INSN_CONFIG_GET_PWM_STATUS.
authorFrank Mori Hess <fmhess@speakeasy.net>
Fri, 28 Mar 2008 14:07:45 +0000 (14:07 +0000)
committerFrank Mori Hess <fmhess@speakeasy.net>
Fri, 28 Mar 2008 14:07:45 +0000 (14:07 +0000)
comedi/drivers/usbdux.c
include/linux/comedi.h

index f2ecc6c19811dcf9366966a2118d90a3e0c33207..3c352e4153b7e1dda9ed35e9fa215c9fefb555a0 100644 (file)
@@ -2184,7 +2184,7 @@ static int usbdux_pwm_config(comedi_device * dev, comedi_subdevice * s,
                       dev->minor);
 #endif
                return usbdux_pwm_cancel(dev, s);
-       case INSN_GET_PWM_STATUS:
+       case INSN_CONFIG_GET_PWM_STATUS:
                // to check if the USB transmission has failed or in case
                // PWM was limited to n cycles to check if it has terminated
                data[1] = this_usbduxsub->pwm_cmd_running;
index d0e3d57169fff3e91403ca25e68b99f5d6496a10..ca9496a69dcc8d4a6520ec276e9a47604c27eb24 100644 (file)
@@ -264,7 +264,7 @@ extern "C" {
 /* PWM */
                INSN_CONFIG_PWM_SET_PERIOD = 5000,   /* sets frequency */
                INSN_CONFIG_PWM_GET_PERIOD = 5001,   /* gets frequency */
-               INSN_GET_PWM_STATUS = 5002,          /* is it running? */
+               INSN_CONFIG_GET_PWM_STATUS = 5002,          /* is it running? */
                INSN_CONFIG_PWM_SET_H_BRIDGE = 5003, /* sets H bridge: duty cycle and sign bit for a relay  at the same time*/
                INSN_CONFIG_PWM_GET_H_BRIDGE = 5004  /* gets H bridge data: duty cycle and the sign bit */
        };
@@ -837,7 +837,7 @@ CR_INVERT to change polarity. */
                AMPLC_DIO_CLK_1KHZ,     /* 1 kHz internal clock */
                AMPLC_DIO_CLK_OUTNM1,   /* output of preceding counter channel
                                           (for channel 0, preceding counter
-                                          channel is channel 2 on preceding 
+                                          channel is channel 2 on preceding
                                           counter subdevice, for first counter
                                           subdevice, preceding counter
                                           subdevice is the last counter