From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mike Frysinger Date: Sun, 11 Dec 2011 02:24:51 -0500 Subject: [U-Boot] [PATCH 1/2] NET: NE2000: Cleanup IO accessors In-Reply-To: <1323565772-4498-1-git-send-email-marek.vasut@gmail.com> References: <1323565772-4498-1-git-send-email-marek.vasut@gmail.com> Message-ID: <201112110224.52449.vapier@gentoo.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Saturday 10 December 2011 20:09:30 Marek Vasut wrote: > Introduce ne2k_register_io(in, out), which allows user to supply two > functions. One for reading data from the card, the other for writing data > to the card. Then introduce drivers' private data, which carry pointers to > these functions and are passed throughout the driver. where are the users of this new API ? as it stands, i just see bloat. every register access is now an indirect function call ? what's the point ? -mike -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 836 bytes Desc: This is a digitally signed message part. URL: