On Thursday 25 April 2013 13:16:49 Mark Brown wrote: > On Thu, Apr 25, 2013 at 01:18:39PM +0200, Laurent Pinchart wrote: > > On Thursday 25 April 2013 12:07:18 Mark Brown wrote: > > > You could use an MMIO regmap providing the performance isn't critical > > > enough for that to cause problems. > > > > Can you share a regmap object between two separate drivers for two > > separate > > platform devices ? > > Yes, this is commonly done with MFDs for example. I've had a quick look at the code, the regmap is passed through platform data to the subdevices. With such an approach I could even pass the lock down to the regulator driver (not that it would be a good idea of course). I'll push the code as-is for now, but I'll this in mind when migrating the PFC driver to regmap. -- Regards, Laurent Pinchart