From: H Hartley Sweeten Date: Wed, 16 Jul 2014 18:22:47 +0000 (-0700) Subject: staging: comedi: cb_pcidas64: remove 'volatile' from set_dac_range_bits() param X-Git-Tag: v3.17-rc1~123^2~604 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=350a327641f891fde438ba7e1591f8a858e524f6;p=karo-tx-linux.git staging: comedi: cb_pcidas64: remove 'volatile' from set_dac_range_bits() param As indicated by checkpatch.pl, "WARNING: Use of volatile is usually wrong: ...". The 'bits' parameter to this function does not need to be volatile. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/comedi/drivers/cb_pcidas64.c b/drivers/staging/comedi/drivers/cb_pcidas64.c index 781412e11da9..0fd73e7f34c3 100644 --- a/drivers/staging/comedi/drivers/cb_pcidas64.c +++ b/drivers/staging/comedi/drivers/cb_pcidas64.c @@ -1180,7 +1180,7 @@ static unsigned int hw_revision(const struct comedi_device *dev, } static void set_dac_range_bits(struct comedi_device *dev, - volatile uint16_t *bits, unsigned int channel, + uint16_t *bits, unsigned int channel, unsigned int range) { const struct pcidas64_board *thisboard = comedi_board(dev);