From: Pantelis Antoniou Date: Tue, 28 Oct 2014 20:36:02 +0000 (+0200) Subject: i2c/of: Factor out Devicetree registration code X-Git-Tag: omap-for-v3.19/fixes-rc1~127^2~13 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a430a3455f2c48995e06b359a82a1109a419e9ef;p=pandora-kernel.git i2c/of: Factor out Devicetree registration code Dynamically inserting i2c client device nodes requires the use of a single device registration method. Factor out the loop body of of_i2c_register_devices() so that it can be called for individual device_nodes instead of for all the children of a node. Note: The diff of this commit looks far more complicated than it actually is due the indentation being changed for a large block of code. When viewed using the diff -w flag to ignore whitespace changes it can be seen that the change is actually quite simple. Signed-off-by: Pantelis Antoniou [grant.likely: Made new function static and removed changes to header] Signed-off-by: Grant Likely Reviewed-by: Wolfram Sang Cc: Rob Herring Cc: linux-i2c@vger.kernel.org --- Reading git-diff-tree failed