From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michael Walle Date: Thu, 27 Oct 2011 23:36:37 +0200 Subject: [U-Boot] [PATCH 1/2] net: introduce per device index In-Reply-To: <1319751096-24404-2-git-send-email-michael@walle.cc> References: <201110252310.30372.michael@walle.cc> <1319751096-24404-2-git-send-email-michael@walle.cc> Message-ID: <201110272336.37376.michael@walle.cc> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Am Donnerstag 27 Oktober 2011, 23:31:35 schrieb Michael Walle: > Instead of counting the device index everytime a functions needs it, store > it in the eth_device struct. eth_register() keeps track of the indices and > updates the device's index number. This simplifies some functions in > net/eth.c. > > Additionally, a network driver can now query its index, eg. to get the > correct environment ethaddr name. > > Signed-off-by: Michael Walle > Cc: Prafulla Wadaskar > Cc: Mike Frysinger sorry mike, i'll fix this for v2 ;) -- Michael