
20 Oct
2014
20 Oct
'14
9:17 p.m.
On Mon, Oct 20, 2014 at 09:59:44AM -0500, Andrew Ruder wrote:
Currently this argument is not used. To eventually support multiple DM9000's these public-facing functions will need a new argument - the ethernet device. Fix-up the one board using this part of the DM9000 API. Compile-tested only.
[snip]
-void dm9000_read_srom_word(int offset, u8 *to) +void dm9000_read_srom_word(struct eth_device *dev, int offset, u8 *to) {
- (void)dev;
You shouldn't have to add this to avoid a warning I think. And frankly, if it does for some reason since 3/3 makes use of dev, I'm OK with a bisect adding a trivial warning like this, rather than do compiler games.
--
Tom