Thread (17 messages) 17 messages, 2 authors, 2016-11-08

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

From: Y.B. Lu <hidden>
Date: 2016-10-31 11:00:57
Also in: linux-arm-kernel, linux-clk, linux-devicetree, linux-i2c, linux-iommu, linux-mmc, linuxppc-dev, lkml

-----Original Message-----
From: Arnd Bergmann [mailto:arnd-r2nGTMty4D4@public.gmane.org]
Sent: Friday, October 28, 2016 6:48 PM
To: linuxppc-dev-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org
Cc: Y.B. Lu; linux-mmc-u79uwXL29TY76Z2rM5mHXA@public.gmane.org; ulf.hansson-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org; Scott
Wood; Mark Rutland; Greg Kroah-Hartman; X.B. Xie; M.H. Lian; linux-
i2c-u79uwXL29TY76Z2rM5mHXA@public.gmane.org; linux-clk-u79uwXL29TY76Z2rM5mHXA@public.gmane.org; Qiang Zhao; Russell King;
Bhupesh Sharma; Joerg Roedel; Claudiu Manoil; devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org;
Rob Herring; Santosh Shilimkar; linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org;
netdev-u79uwXL29TY76Z2rM5mHXA@public.gmane.org; linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org; Leo Li;
iommu-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.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:
quoted
+
+static int soc_device_match_one(struct device *dev, void *arg) {
+       struct soc_device *soc_dev = container_of(dev, struct
soc_device, dev);
quoted
+       const struct soc_device_attribute *match = arg;
+
+       if (match->machine &&
+           !glob_match(match->machine, soc_dev->attr->machine))
+               return 0;
+
+       if (match->family &&
+           !glob_match(match->family, soc_dev->attr->family))
+               return 0;
+
Geert found a bug in my code, and submitted a fix at
https://patchwork.kernel.org/patch/9361395/

I think you should include that one in your series.
[Lu Yangbo-B47093] Ok, no problem. Thanks :)
	Arnd
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help