staging: comedi: ni_660x: Prefer kernel type 'u64' over 'uint64_t'
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Tue, 22 Mar 2016 18:10:30 +0000 (11:10 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 28 Mar 2016 14:30:36 +0000 (07:30 -0700)
Fix the checkpatch.pl issues.

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

index 6ca5c67b1a8050bbbfe1e60c9e139be077379bd4..4f7f5ca01e973d39bb4f508d8efb3bd8b1e8cf4b 100644 (file)
@@ -331,7 +331,7 @@ static const struct ni_660x_board ni_660x_boards[] = {
 struct ni_660x_private {
        struct mite_struct *mite;
        struct ni_gpct_device *counter_dev;
-       uint64_t pfi_direction_bits;
+       u64 pfi_direction_bits;
        struct mite_dma_descriptor_ring
        *mite_rings[NI_660X_MAX_NUM_CHIPS][counters_per_chip];
        spinlock_t mite_channel_lock;
@@ -854,7 +854,7 @@ static int ni_660x_set_pfi_routing(struct comedi_device *dev,
        }
 
        devpriv->pfi_output_selects[chan] = source;
-       if (devpriv->pfi_direction_bits & (((uint64_t) 1) << chan))
+       if (devpriv->pfi_direction_bits & (1ULL << chan))
                ni_660x_select_pfi_output(dev, chan,
                                          devpriv->pfi_output_selects[chan]);
        return 0;
@@ -867,7 +867,7 @@ static int ni_660x_dio_insn_config(struct comedi_device *dev,
 {
        struct ni_660x_private *devpriv = dev->private;
        unsigned int chan = CR_CHAN(insn->chanspec);
-       uint64_t bit = 1ULL << chan;
+       u64 bit = 1ULL << chan;
        unsigned int val;
        int ret;