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

@ -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);