From mboxrd@z Thu Jan 1 00:00:00 1970 From: Simon Horman Date: Thu, 04 Apr 2013 06:34:10 +0000 Subject: Re: [PATCH 1/2] ARM: shmobile: R8A7779: add Ether support Message-Id: <20130404063410.GP28297@verge.net.au> List-Id: References: <201304020204.54546.sergei.shtylyov@cogentembedded.com> <87wqsl6ale.wl%kuninori.morimoto.gx@renesas.com> <515AC546.90905@cogentembedded.com> <87txnocw6n.wl%kuninori.morimoto.gx@renesas.com> <515C2D0E.8010607@cogentembedded.com> In-Reply-To: <515C2D0E.8010607@cogentembedded.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-arm-kernel@lists.infradead.org On Wed, Apr 03, 2013 at 05:22:22PM +0400, Sergei Shtylyov wrote: > Hello. > > On 03-04-2013 4:08, Kuninori Morimoto wrote: > > >>>Then, this (void *pdata) should be > >>>(struct sh_eth_plat_data *pdata) IMO > > >> ether_device.dev.platform_data is 'void *'. I didn't want to bring in > >>extra header for the little use. > > >Not enough reason for me. > > >"void *" means there is no pointer check, > >and extra header is just 1 line. No ? > > There's no pointer check either if we just initialize the 'platform_data' > member as part of the platfrom device initializer, so we can > actually stuff pointer to any nonsense there. Why make this case > different? > > >If you want to use this style, > >then, additional extra header is fate, IMO > > We can agree to disagree here. :-) I would like void * changed to struct sh_eth_plat_data * so that callers of r8a7779_add_ether_device() will get a warning if they pass an argument of the wrong type. Other than that I believe that I am happy with this patch. Ditto for the similar patch for the R8A7778. Thanks From mboxrd@z Thu Jan 1 00:00:00 1970 From: horms@verge.net.au (Simon Horman) Date: Thu, 4 Apr 2013 15:34:10 +0900 Subject: [PATCH 1/2] ARM: shmobile: R8A7779: add Ether support In-Reply-To: <515C2D0E.8010607@cogentembedded.com> References: <201304020204.54546.sergei.shtylyov@cogentembedded.com> <87wqsl6ale.wl%kuninori.morimoto.gx@renesas.com> <515AC546.90905@cogentembedded.com> <87txnocw6n.wl%kuninori.morimoto.gx@renesas.com> <515C2D0E.8010607@cogentembedded.com> Message-ID: <20130404063410.GP28297@verge.net.au> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org On Wed, Apr 03, 2013 at 05:22:22PM +0400, Sergei Shtylyov wrote: > Hello. > > On 03-04-2013 4:08, Kuninori Morimoto wrote: > > >>>Then, this (void *pdata) should be > >>>(struct sh_eth_plat_data *pdata) IMO > > >> ether_device.dev.platform_data is 'void *'. I didn't want to bring in > >>extra header for the little use. > > >Not enough reason for me. > > >"void *" means there is no pointer check, > >and extra header is just 1 line. No ? > > There's no pointer check either if we just initialize the 'platform_data' > member as part of the platfrom device initializer, so we can > actually stuff pointer to any nonsense there. Why make this case > different? > > >If you want to use this style, > >then, additional extra header is fate, IMO > > We can agree to disagree here. :-) I would like void * changed to struct sh_eth_plat_data * so that callers of r8a7779_add_ether_device() will get a warning if they pass an argument of the wrong type. Other than that I believe that I am happy with this patch. Ditto for the similar patch for the R8A7778. Thanks