Thread (20 messages) flat view 20 messages, 4 authors, 2017-01-18

Re: [PATCH net-next v4 05/10] drivers: base: Add device_find_in_class_name()

From: Andy Shevchenko <hidden>
Date: 2017-01-18 00:07:28
Also in: linux-arm-kernel, lkml

On Wed, Jan 18, 2017 at 2:04 AM, Florian Fainelli [off-list ref] wrote:
On 01/17/2017 04:00 PM, Andy Shevchenko wrote:
quoted
On Wed, Jan 18, 2017 at 1:43 AM, Florian Fainelli [off-list ref] wrote:
quoted
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
But why not to use void *class_name to be consistent with callback and
device_find_child()?
The top-level function: device_find_in_class_name() should have a
stronger typing of its argument even if it internally uses
device_find_child() and a callback that takes a void * argument, that's
how I see it.
Fair enough.
quoted
Btw,
return get_device(parent);
Not sure I follow what that means here?
Missed remark. Instead of

get_device(parent);
return parent;

you can use

return get_device(parent);

-- 
With Best Regards,
Andy Shevchenko
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help