mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-05 16:54:27 +00:00
staging: comedi: s626: remove 'ChargeEnabled' from private data
This variable is never used in the driver. Just remove it. Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com> Cc: Ian Abbott <abbotti@mev.co.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
17553c88a2
commit
7f98961c0d
1 changed files with 0 additions and 7 deletions
|
@ -98,7 +98,6 @@ struct s626_private {
|
||||||
/* Pointer to logical adrs of DMA buffer used to hold DAC data. */
|
/* Pointer to logical adrs of DMA buffer used to hold DAC data. */
|
||||||
uint16_t Dacpol; /* Image of DAC polarity register. */
|
uint16_t Dacpol; /* Image of DAC polarity register. */
|
||||||
uint8_t TrimSetpoint[12]; /* Images of TrimDAC setpoints */
|
uint8_t TrimSetpoint[12]; /* Images of TrimDAC setpoints */
|
||||||
uint16_t ChargeEnabled; /* Image of MISC2 Battery */
|
|
||||||
/* Charge Enabled (0 or WRMISC2_CHARGE_ENABLE). */
|
/* Charge Enabled (0 or WRMISC2_CHARGE_ENABLE). */
|
||||||
uint16_t WDInterval; /* Image of MISC2 watchdog interval control bits. */
|
uint16_t WDInterval; /* Image of MISC2 watchdog interval control bits. */
|
||||||
uint32_t I2CAdrs;
|
uint32_t I2CAdrs;
|
||||||
|
@ -2667,12 +2666,6 @@ static void s626_initialize(struct comedi_device *dev)
|
||||||
for (chan = 0; chan < S626_DAC_CHANNELS; chan++)
|
for (chan = 0; chan < S626_DAC_CHANNELS; chan++)
|
||||||
SetDAC(dev, chan, 0);
|
SetDAC(dev, chan, 0);
|
||||||
|
|
||||||
/* Init image of WRMISC2 Battery Charger Enabled control bit.
|
|
||||||
* This image is used when the state of the charger control bit,
|
|
||||||
* which has no direct hardware readback mechanism, is queried.
|
|
||||||
*/
|
|
||||||
devpriv->ChargeEnabled = 0;
|
|
||||||
|
|
||||||
/* Init image of watchdog timer interval in WRMISC2. This image
|
/* Init image of watchdog timer interval in WRMISC2. This image
|
||||||
* maintains the value of the control bits of MISC2 are
|
* maintains the value of the control bits of MISC2 are
|
||||||
* continuously reset to zero as long as the WD timer is disabled.
|
* continuously reset to zero as long as the WD timer is disabled.
|
||||||
|
|
Loading…
Add table
Reference in a new issue