mirror of
https://github.com/torvalds/linux.git
synced 2024-11-29 07:31:29 +00:00
722fc31663
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 <amsfield22@gmail.com> Signed-off-by: Jonathan Cameron <jic23@kernel.org> |
||
---|---|---|
.. | ||
accel | ||
adc | ||
addac | ||
cdc | ||
Documentation | ||
frequency | ||
gyro | ||
impedance-analyzer | ||
light | ||
meter | ||
resolver | ||
trigger | ||
Kconfig | ||
Makefile | ||
ring_hw.h | ||
TODO |