From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ben Warren Date: Wed, 01 Sep 2010 14:45:22 -0700 Subject: [U-Boot] [PATCH 1/2] TI: netdev: add driver for cpsw ethernet device In-Reply-To: <4C7E7273.2050109@ti.com> References: <1280885633-22185-1-git-send-email-cyril@ti.com> <1280885633-22185-2-git-send-email-cyril@ti.com> <4C7C9277.1010304@gmail.com> <4C7E7273.2050109@ti.com> Message-ID: <4C7EC972.6030401@gmail.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hi Cyril, On 9/1/2010 8:34 AM, Cyril Chemparathy wrote: > Hi Ben, > > I seem to have missed a comment while responding earlier: > > [...] >>> +int cpsw_register(struct cpsw_platform_data *data) >> Please redo things so that this function takes generic arguments. Build >> up your struct internally. > Could you elaborate on the generic arguments here? Are you referring to > the eth_device struct and bd_t args? > By generic I mean primitive, or structs that are defined in headers that are universally included. Ideally, you'll pass in arguments that don't require another header file to resolve, such as a base address or index number. As you've proposed, anybody that includes will need to know what a 'struct cpsw_platform_data' is, and that's not appropriate. > Regards > Cyril. regards, Ben