]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commitdiff
staging: comedi: cb_pcidas: sample types are unsigned
authorIan Abbott <abbotti@mev.co.uk>
Wed, 16 Oct 2013 13:40:14 +0000 (14:40 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 16 Oct 2013 19:48:18 +0000 (12:48 -0700)
Sample values in comedi are generally represented by unsigned values.
Change the element types of `ai_buffer[]`, `ao_buffer[]` and
`ao_value[]` in `struct cb_pcidas_private` to `unsigned short` for
consistency.

Signed-off-by: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/drivers/cb_pcidas.c

index 0891659f9eb5a0bb15cdc6936e941310d1b8703f..e72a403db17ca8e0f0d7715791ef1ff8d27223b0 100644 (file)
@@ -357,15 +357,15 @@ struct cb_pcidas_private {
        unsigned int s5933_intcsr_bits;
        unsigned int ao_control_bits;
        /* fifo buffers */
-       short ai_buffer[AI_BUFFER_SIZE];
-       short ao_buffer[AO_BUFFER_SIZE];
+       unsigned short ai_buffer[AI_BUFFER_SIZE];
+       unsigned short ao_buffer[AO_BUFFER_SIZE];
        /* divisors of master clock for analog output pacing */
        unsigned int ao_divisor1;
        unsigned int ao_divisor2;
        /* number of analog output samples remaining */
        unsigned int ao_count;
        /* cached values for readback */
-       int ao_value[2];
+       unsigned short ao_value[2];
        unsigned int caldac_value[NUM_CHANNELS_8800];
        unsigned int trimpot_value[NUM_CHANNELS_8402];
        unsigned int dac08_value;