mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-26 04:05:18 +07:00
staging: comedi: rtd520: rename CamelCase fifoLen
Rename this private data variable to fifosz. Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com> Reviewed-by: Ian Abbott <abbotti@mev.co.uk> Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
2d7b8b9434
commit
cd5e2d0628
@ -404,7 +404,7 @@ struct rtd_private {
|
|||||||
|
|
||||||
unsigned int ao_readback[2];
|
unsigned int ao_readback[2];
|
||||||
|
|
||||||
unsigned fifoLen;
|
unsigned fifosz;
|
||||||
};
|
};
|
||||||
|
|
||||||
/* bit defines for "flags" */
|
/* bit defines for "flags" */
|
||||||
@ -744,7 +744,7 @@ static irqreturn_t rtd_interrupt(int irq, /* interrupt number (ignored) */
|
|||||||
*/
|
*/
|
||||||
if (!(fifoStatus & FS_ADC_HEMPTY)) {
|
if (!(fifoStatus & FS_ADC_HEMPTY)) {
|
||||||
/* FIFO half full */
|
/* FIFO half full */
|
||||||
if (ai_read_n(dev, s, devpriv->fifoLen / 2) < 0)
|
if (ai_read_n(dev, s, devpriv->fifosz / 2) < 0)
|
||||||
goto abortTransfer;
|
goto abortTransfer;
|
||||||
|
|
||||||
if (0 == devpriv->aiCount)
|
if (0 == devpriv->aiCount)
|
||||||
@ -1004,7 +1004,7 @@ static int rtd_ai_cmd(struct comedi_device *dev, struct comedi_subdevice *s)
|
|||||||
/* ADC conversion trigger source: PACER */
|
/* ADC conversion trigger source: PACER */
|
||||||
writel(1, devpriv->las0 + LAS0_ADC_CONVERSION);
|
writel(1, devpriv->las0 + LAS0_ADC_CONVERSION);
|
||||||
}
|
}
|
||||||
writel((devpriv->fifoLen / 2 - 1) & 0xffff, devpriv->las0 + LAS0_ACNT);
|
writel((devpriv->fifosz / 2 - 1) & 0xffff, devpriv->las0 + LAS0_ACNT);
|
||||||
|
|
||||||
if (TRIG_TIMER == cmd->scan_begin_src) {
|
if (TRIG_TIMER == cmd->scan_begin_src) {
|
||||||
/* scan_begin_arg is in nanoseconds */
|
/* scan_begin_arg is in nanoseconds */
|
||||||
@ -1034,7 +1034,7 @@ static int rtd_ai_cmd(struct comedi_device *dev, struct comedi_subdevice *s)
|
|||||||
}
|
}
|
||||||
devpriv->flags |= SEND_EOS;
|
devpriv->flags |= SEND_EOS;
|
||||||
}
|
}
|
||||||
if (devpriv->xfer_count >= (devpriv->fifoLen / 2)) {
|
if (devpriv->xfer_count >= (devpriv->fifosz / 2)) {
|
||||||
/* out of counter range, use 1/2 fifo instead */
|
/* out of counter range, use 1/2 fifo instead */
|
||||||
devpriv->xfer_count = 0;
|
devpriv->xfer_count = 0;
|
||||||
devpriv->flags &= ~SEND_EOS;
|
devpriv->flags &= ~SEND_EOS;
|
||||||
@ -1423,7 +1423,7 @@ static int rtd_auto_attach(struct comedi_device *dev,
|
|||||||
ret = rtd520_probe_fifo_depth(dev);
|
ret = rtd520_probe_fifo_depth(dev);
|
||||||
if (ret < 0)
|
if (ret < 0)
|
||||||
return ret;
|
return ret;
|
||||||
devpriv->fifoLen = ret;
|
devpriv->fifosz = ret;
|
||||||
|
|
||||||
if (dev->irq)
|
if (dev->irq)
|
||||||
writel(ICS_PIE | ICS_PLIE, devpriv->lcfg + PLX_INTRCS_REG);
|
writel(ICS_PIE | ICS_PLIE, devpriv->lcfg + PLX_INTRCS_REG);
|
||||||
|
Loading…
Reference in New Issue
Block a user