Commit 53cb50aa authored by H Hartley Sweeten's avatar H Hartley Sweeten Committed by Greg Kroah-Hartman

staging: comedi: cb_pcidas: use preferred kernel types

As suggested by checkpatch.pl:

CHECK: Prefer kernel type 'u8' over 'uint8_t'
Signed-off-by: default avatarH Hartley Sweeten <hsweeten@visionengravers.com>
Reviewed-by: default avatarIan Abbott <abbotti@mev.co.uk>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent be3a7688
...@@ -493,7 +493,7 @@ static int wait_for_nvram_ready(unsigned long s5933_base_addr) ...@@ -493,7 +493,7 @@ static int wait_for_nvram_ready(unsigned long s5933_base_addr)
} }
static int nvram_read(struct comedi_device *dev, unsigned int address, static int nvram_read(struct comedi_device *dev, unsigned int address,
uint8_t *data) u8 *data)
{ {
struct cb_pcidas_private *devpriv = dev->private; struct cb_pcidas_private *devpriv = dev->private;
unsigned long iobase = devpriv->s5933_config; unsigned long iobase = devpriv->s5933_config;
...@@ -521,7 +521,7 @@ static int eeprom_read_insn(struct comedi_device *dev, ...@@ -521,7 +521,7 @@ static int eeprom_read_insn(struct comedi_device *dev,
struct comedi_subdevice *s, struct comedi_subdevice *s,
struct comedi_insn *insn, unsigned int *data) struct comedi_insn *insn, unsigned int *data)
{ {
uint8_t nvram_data; u8 nvram_data;
int retval; int retval;
retval = nvram_read(dev, CR_CHAN(insn->chanspec), &nvram_data); retval = nvram_read(dev, CR_CHAN(insn->chanspec), &nvram_data);
...@@ -553,7 +553,7 @@ static void write_calibration_bitstream(struct comedi_device *dev, ...@@ -553,7 +553,7 @@ static void write_calibration_bitstream(struct comedi_device *dev,
} }
static void caldac_8800_write(struct comedi_device *dev, static void caldac_8800_write(struct comedi_device *dev,
unsigned int chan, uint8_t val) unsigned int chan, u8 val)
{ {
struct cb_pcidas_private *devpriv = dev->private; struct cb_pcidas_private *devpriv = dev->private;
static const int bitstream_length = 11; static const int bitstream_length = 11;
...@@ -626,7 +626,7 @@ static int cb_pcidas_dac08_insn_write(struct comedi_device *dev, ...@@ -626,7 +626,7 @@ static int cb_pcidas_dac08_insn_write(struct comedi_device *dev,
return insn->n; return insn->n;
} }
static int trimpot_7376_write(struct comedi_device *dev, uint8_t value) static int trimpot_7376_write(struct comedi_device *dev, u8 value)
{ {
struct cb_pcidas_private *devpriv = dev->private; struct cb_pcidas_private *devpriv = dev->private;
static const int bitstream_length = 7; static const int bitstream_length = 7;
...@@ -651,7 +651,7 @@ static int trimpot_7376_write(struct comedi_device *dev, uint8_t value) ...@@ -651,7 +651,7 @@ static int trimpot_7376_write(struct comedi_device *dev, uint8_t value)
* ch 0 : adc gain * ch 0 : adc gain
* ch 1 : adc postgain offset */ * ch 1 : adc postgain offset */
static int trimpot_8402_write(struct comedi_device *dev, unsigned int channel, static int trimpot_8402_write(struct comedi_device *dev, unsigned int channel,
uint8_t value) u8 value)
{ {
struct cb_pcidas_private *devpriv = dev->private; struct cb_pcidas_private *devpriv = dev->private;
static const int bitstream_length = 10; static const int bitstream_length = 10;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment