RE: [v15, 6/7] base: soc: introduce soc_device_match() interface

2016-10-31 Thread Y.B. Lu
@vger.kernel.org; Leo Li; > io...@lists.linux-foundation.org; Kumar Gala; Geert Uytterhoeven > Subject: Re: [v15, 6/7] base: soc: introduce soc_device_match() interface > > On Friday, October 28, 2016 2:50:17 PM CEST Yangbo Lu wrote: > > + > > +static int soc_device_match_one(struct d

RE: [v15, 6/7] base: soc: introduce soc_device_match() interface

2016-10-31 Thread Y.B. Lu
@vger.kernel.org; Leo Li; > io...@lists.linux-foundation.org; Kumar Gala; Geert Uytterhoeven > Subject: Re: [v15, 6/7] base: soc: introduce soc_device_match() interface > > On Friday, October 28, 2016 2:50:17 PM CEST Yangbo Lu wrote: > > + > > +static int soc_device_match_one(struct d

Re: [v15, 6/7] base: soc: introduce soc_device_match() interface

2016-10-28 Thread Arnd Bergmann
On Friday, October 28, 2016 2:50:17 PM CEST Yangbo Lu wrote: > + > +static int soc_device_match_one(struct device *dev, void *arg) > +{ > + struct soc_device *soc_dev = container_of(dev, struct soc_device, > dev); > + const struct soc_device_attribute *match = arg; > + > + if

Re: [v15, 6/7] base: soc: introduce soc_device_match() interface

2016-10-28 Thread Arnd Bergmann
On Friday, October 28, 2016 2:50:17 PM CEST Yangbo Lu wrote: > + > +static int soc_device_match_one(struct device *dev, void *arg) > +{ > + struct soc_device *soc_dev = container_of(dev, struct soc_device, > dev); > + const struct soc_device_attribute *match = arg; > + > + if