Rockbox mail archiveSubject: Re: i2c unification
Re: i2c unification
From: Amaury Pouly <amaury.pouly_at_gmail.com>
Date: Fri, 10 Dec 2010 09:33:48 +0100
> Anyway I am opened for sugesstions. If you could write down simple
> example how you think this should be done I'll be happy to look at.
> I think what he means is that since the i2c busses are always the same for
a given target, the runtime registration stuff adds some overhead and
perhaps we could build the callback table at compile time (using some
ifdefs). Something like perhaps:
static const struct i2c_struct *i2c_if[MAX_I2C_INTERFACES] =
[MY_I2C_IFACE_NR] = ...
Received on 2010-12-10