On Wed, Jan 18, 2017 at 1:43 AM, Florian Fainelli [off-list ref] wrote:
On 01/17/2017 03:34 PM, Andy Shevchenko wrote:
quoted
On Wed, Jan 18, 2017 at 1:21 AM, Florian Fainelli [off-list ref] wrote:
quoted
quoted
+static int device_class_name_match(struct device *dev, void *class)
And why not const char *class?
This was raised back in v2, and the same response applies:
https://www.mail-archive.com/netdev at vger.kernel.org/msg147559.html
Changing the signature of a callback is out of the scope of this patch
series.
Ah, right.
But why not to use void *class_name to be consistent with callback and
device_find_child()?
Btw,
return get_device(parent);
--
With Best Regards,
Andy Shevchenko