Fix checking for CONFIG_CHARGING

Change-Id: I53b9a129679fd7b322770025106ef92033226d2a
This commit is contained in:
Mihail Zenkov 2016-03-30 12:50:40 +00:00 committed by Gerrit Rockbox
parent e599810ffa
commit ce90c0481a
4 changed files with 37 additions and 38 deletions

View file

@ -297,7 +297,7 @@ void ascodec_init(void)
/* Generate irq for usb+charge status change */
ascodec_write(AS3514_IRQ_ENRD0,
#ifdef CONFIG_CHARGING /* m200v4 can't charge */
#if CONFIG_CHARGING /* m200v4 can't charge */
IRQ_CHGSTAT | IRQ_ENDOFCH |
#endif
IRQ_USBSTAT);
@ -530,7 +530,7 @@ void ascodec_wait_adc_finished(void)
semaphore_wait(&adc_done_sem, TIMEOUT_BLOCK);
}
#ifdef CONFIG_CHARGING
#if CONFIG_CHARGING
bool ascodec_endofch(void)
{
bool ret = ascodec_enrd0_shadow & CHG_ENDOFCH;