aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/net_dropmonitor.py
diff options
context:
space:
mode:
authorJean-Francois Moine <moinejf@free.fr>2014-11-25 06:14:48 -0500
committerMark Brown <broonie@kernel.org>2014-11-25 17:26:34 -0500
commitc362effe5cda4df02aa7670d58636ea73979e304 (patch)
tree3b56baadab2088a02099a4481b02c07ef7eafc19 /tools/perf/scripts/python/net_dropmonitor.py
parent8e2be56273666614e24756d7ee551203b8a86809 (diff)
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 <moinejf@free.fr> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/net_dropmonitor.py')
0 files changed, 0 insertions, 0 deletions