aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/netdev-times.py
diff options
context:
space:
mode:
authorAlison Schofield <[email protected]>2016-03-15 11:49:12 -0700
committerJonathan Cameron <[email protected]>2016-03-20 10:27:25 +0000
commit722fc31663d506d668e6a3bea4e9dca8ab957d3a (patch)
tree255593be295ead06edf35b73dfe3fe4f5c634c13 /tools/perf/scripts/python/netdev-times.py
parent6ad515c6d6beea3cbb8557ba2b0f57c39301b0f7 (diff)
staging: iio: isl29028: use regmap to retrieve struct device
Driver includes struct regmap and struct device in its global data. Remove the struct device and use regmap API to retrieve device info. Simplified version of Coccinelle semantic patch used: @ a @ identifier drvdata, r; position p; @@ struct drvdata@p { ... struct regmap *r; ... }; @ b @ identifier a.drvdata, d; position a.p; @@ struct drvdata@p { ... - struct device *d; ... }; @ passed depends on b @ identifier a.drvdata, a.r, b.d, i, f; @@ f (..., struct drvdata *i ,...) { + struct device *dev = regmap_get_device(i->r); <+... - i->d + dev ...+> } Signed-off-by: Alison Schofield <[email protected]> Signed-off-by: Jonathan Cameron <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/netdev-times.py')
0 files changed, 0 insertions, 0 deletions