Location for a kind of GPIO bus driver
Greg KH
gregkh at linuxfoundation.org
Thu Jul 25 18:16:15 EDT 2013
On Thu, Jul 25, 2013 at 11:46:42PM +0200, Linus Walleij wrote:
> On Tue, Jul 23, 2013 at 5:18 PM, Simon Guinot <simon.guinot at sequanux.org> wrote:
>
> > (...) I am
> > thinking about moving the GPIO extension bus support into a separate
> > driver. The problem is that I can't find a proper location for a such
> > driver. AFAIK, it doesn't fit with anything existing supported by Linux.
> > Maybe I should consider drivers/bus ? Or even drivers/misc ?
>
> This is a question to Greg, the device core maintainer.
> AFAICT they go into drivers/base/foo-bus.c
No, specific bus code does not go in drivers/base/ it goes where the
rest of the subsystem lives.
> In this case I would first consider using MFD though,
> please make a case for why this is not simply a multi
> function device with a few cells (== platform devices).
I agree with this as well.
thanks,
greg k-h
More information about the linux-arm-kernel
mailing list