1
0
Fork 0
forked from len0rd/rockbox

Add INIT_ATTR to i2c_init()

It's usually only called from init() in main.c, so this is safe.

There is one more call in system-dm320.c from system_init(), but
that's also "safe". I don't know if it's okay to call i2c_init()
twice, but presumably it works...

Change-Id: I9c1cd918d162d9955f7cf03209e836cbd5e30c57
This commit is contained in:
Aidan MacDonald 2022-12-03 16:15:20 +00:00
parent 39439f6909
commit 7e5fc4076a
10 changed files with 10 additions and 10 deletions

View file

@ -30,7 +30,7 @@
#include "cpu.h"
void i2c_init(void);
void i2c_init(void) INIT_ATTR;
int i2c_read (volatile unsigned char *iface, unsigned char addr,
unsigned char *buf, int count);
int i2c_write(volatile unsigned char *iface, unsigned char addr,