[Gta04-owner] [PATCH 1/2] leds/tca6507: Add support for devicetree.
Flemming Richter Mikkelsen
quatrox at gmail.com
Thu Oct 18 18:22:04 CEST 2012
Sorry for maybe a stupid question, but is this a bug:
+ struct device_node *np = client->dev.of_node, *child;
I expected it to be:
+ struct device_node *np = { client->dev.of_node, *child };
but did not check the types because I don't have access to my computer atm.
If I am not mistaking, the statement:
+ struct device_node *np = client->dev.of_node, *child;
is the same as:
+ struct device_node *np = *child;
unless client->dev.of_node is a macro.
I didn't double check this, so I might be wrong and only generating noise here.
More information about the Gta04-owner
mailing list