summaryrefslogtreecommitdiff
path: root/firmware/drivers/pcf50606.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/drivers/pcf50606.c')
-rw-r--r--firmware/drivers/pcf50606.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/firmware/drivers/pcf50606.c b/firmware/drivers/pcf50606.c
index 0f2d73664b..28df295988 100644
--- a/firmware/drivers/pcf50606.c
+++ b/firmware/drivers/pcf50606.c
@@ -52,7 +52,7 @@ void pcf50606_i2c_recalc_delay(int cpu_clock)
52 i2c_delay = MAX(cpu_clock / (400000*2*3) - 7, 1); 52 i2c_delay = MAX(cpu_clock / (400000*2*3) - 7, 1);
53} 53}
54 54
55static inline void pcf50606_i2c_start(void) 55inline void pcf50606_i2c_start(void)
56{ 56{
57#ifdef USE_ASM 57#ifdef USE_ASM
58 asm ( 58 asm (
@@ -101,7 +101,7 @@ static inline void pcf50606_i2c_start(void)
101#endif 101#endif
102} 102}
103 103
104static inline void pcf50606_i2c_stop(void) 104inline void pcf50606_i2c_stop(void)
105{ 105{
106#ifdef USE_ASM 106#ifdef USE_ASM
107 asm ( 107 asm (
@@ -141,7 +141,7 @@ static inline void pcf50606_i2c_stop(void)
141#endif 141#endif
142} 142}
143 143
144static inline void pcf50606_i2c_ack(bool ack) 144inline void pcf50606_i2c_ack(bool ack)
145{ 145{
146#ifdef USE_ASM 146#ifdef USE_ASM
147 asm ( 147 asm (
@@ -193,7 +193,7 @@ static inline void pcf50606_i2c_ack(bool ack)
193#endif 193#endif
194} 194}
195 195
196static inline bool pcf50606_i2c_getack(void) 196inline bool pcf50606_i2c_getack(void)
197{ 197{
198 bool ret; 198 bool ret;
199 199
@@ -251,7 +251,7 @@ static inline bool pcf50606_i2c_getack(void)
251 return ret; 251 return ret;
252} 252}
253 253
254static void pcf50606_i2c_outb(unsigned char byte) 254void pcf50606_i2c_outb(unsigned char byte)
255{ 255{
256#ifdef USE_ASM 256#ifdef USE_ASM
257 asm volatile ( 257 asm volatile (
@@ -321,7 +321,7 @@ static void pcf50606_i2c_outb(unsigned char byte)
321#endif 321#endif
322} 322}
323 323
324static unsigned char pcf50606_i2c_inb(bool ack) 324unsigned char pcf50606_i2c_inb(bool ack)
325{ 325{
326 unsigned char byte = 0; 326 unsigned char byte = 0;
327 327