[PATCH v6 08/12] gpio: add ti-ssp gpio driver
Mark Brown
broonie at opensource.wolfsonmicro.com
Mon Nov 22 06:20:38 EST 2010
On Sun, Nov 21, 2010 at 02:31:38PM -0700, Grant Likely wrote:
> On Sun, Nov 21, 2010 at 1:02 PM, Ryan Mallon <ryan at bluewatersys.com> wrote:
> > Currently the code will allow you to install
> > several peripherals at once, which will lead to odd behaviour at
> > runtime. Maybe a better approach would be to have something like this in
> > drivers/mfd/ti-ssp.c:
> Only the ssp core itself is allowed to register the peripheral
> devices, and so using the parent pointer is perfectly valid. I think
> Cyril's approach is fine.
This is very much a standard idiom for MFD children in Linux - if the
children are entirely reliant on working through a parent-specific API
anyway there's no issue with making the parent device be part of that
API.
More information about the linux-arm-kernel
mailing list