diff options
Diffstat (limited to 'firmware/target')
-rw-r--r-- | firmware/target/arm/as3525/ascodec-target.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/firmware/target/arm/as3525/ascodec-target.h b/firmware/target/arm/as3525/ascodec-target.h index 8ce9a428d3..d3d095c365 100644 --- a/firmware/target/arm/as3525/ascodec-target.h +++ b/firmware/target/arm/as3525/ascodec-target.h | |||
@@ -131,7 +131,7 @@ static inline int ascodec_read_pmu(unsigned int index, unsigned int subreg) | |||
131 | /* we disable interrupts to make sure no operation happen on the i2c bus | 131 | /* we disable interrupts to make sure no operation happen on the i2c bus |
132 | * between selecting the sub register and reading it */ | 132 | * between selecting the sub register and reading it */ |
133 | int oldstatus = disable_irq_save(); | 133 | int oldstatus = disable_irq_save(); |
134 | ascodec_write(AS3543_PMU_ENABLE, 8|subreg); | 134 | ascodec_write(AS3543_PMU_ENABLE, subreg); |
135 | int ret = ascodec_read(index); | 135 | int ret = ascodec_read(index); |
136 | restore_irq(oldstatus); | 136 | restore_irq(oldstatus); |
137 | return ret; | 137 | return ret; |