[RFC] What is the preferred way to share ADC unit between hwmon and input(ts) drivers?
Mark Brown
broonie at opensource.wolfsonmicro.com
Mon Apr 25 07:02:30 EDT 2011
On Mon, Apr 25, 2011 at 04:37:38AM +0400, Ilya Yanok wrote:
> So, to add both input and hwmon drivers we need to serialize the
> register accesses. I was thinking about adding some middle-layer to
> perform the actual conversion. The question is what is the preferred way
> to add such a middle layer? Should we use a multi-function device driver
> for this or just some platform-specific code (as S3C does)? Or maybe
> there is another way?
IIO would probably be the standard API to use but that's still stuck in
staging. I'd suggest doing a custom API and then transitioning to IIO
when that moves out of staging.
More information about the linux-arm-kernel
mailing list