On Mon, Jul 21, 2014 at 06:38:47PM +0300, Tuomas Tynkkynen wrote: > Add a new function regmap_get_device to obtain the underlying struct > device from a regmap. I've applied this... > +struct device *regmap_get_device(struct regmap *map) > +{ > + return map->dev; > +} > + ...plus a followup exporting the symbol so it can be used from modules.