mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-11-09 13:12:37 -05:00
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:
parent
39439f6909
commit
7e5fc4076a
10 changed files with 10 additions and 10 deletions
|
|
@ -41,6 +41,6 @@
|
|||
/* IICLC */
|
||||
#define I2C_FLT_ENB (1 << 2)
|
||||
|
||||
void i2c_init(void);
|
||||
void i2c_init(void) INIT_ATTR;
|
||||
void i2c_write(int addr, const unsigned char *data, int count);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue