From: Jean-Francois Moine Date: Tue, 25 Nov 2014 11:14:48 +0000 (+0100) Subject: ASoC: Remove 'const' from the device_node pointers X-Git-Tag: omap-for-v3.20/drop-legacy-3517~123^2~20^2~26^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c362effe5cda4df02aa7670d58636ea73979e304;p=pandora-kernel.git ASoC: Remove 'const' from the device_node pointers As Russell King's explained it, there should not be pointers to struct device_node: "struct device_node is a ref-counted structure. That means if you store a reference to it, you should "get" it, and you should "put" it once you've done. The act of "put"ing the pointed-to structure involves writing to that structure, so it is totally unappropriate to store a device_node structure as a const pointer. It forces you to have to cast it back to a non-const pointer at various points in time to use various OF function calls." [This isn't quite the application here, we're not geting or putting the pointer though we did add some other users who call non-const OF functions -- broonie] Signed-off-by: Jean-Francois Moine Signed-off-by: Mark Brown --- Reading git-diff-tree failed