On Wed, Jan 15, 2014 at 01:36:41AM -0800, Mike Turquette wrote: > Providing common functions for the basic case (e.g. read-modify-write on > a register using a known mask) is reasonable. But that is exactly what > the existing basic clock types do (sans regmap) and they have all become > pretty ugly over time. And the clk-composite implementation just makes > me a sad panda. What we've tried to do with regulators is just have multiple helper functions in the core rather than trying to merge their implementation, the drivers pick the right one for their usage, and in cases where there aren't many drivers doing the same thing we just have the driver either copy the bits of the implementation they reuse or call the helper function from within the implementation.
Attachment:
signature.asc
Description: Digital signature