[PATCH 11/13] [ARM] pxa/balloon3: PCF857x GPIO expander and LEDs

Marek Vasut marek.vasut at gmail.com
Fri Jul 30 00:44:04 EDT 2010


Dne Čt 29. července 2010 12:00:41 Wookey napsal(a):
> +++ Marek Vasut [2010-07-29 05:16 +0200]:
> > Add supported for PCF8574A GPIO expander and LEDs attached to it.
> 
> This IO board is an add-on used in some ballon configurations, not
> part of the core board. There needs to be some way of selecting this
> support when the loon is used in this configuration. We have the
> balloon_has() macro which is used for dealing with the different
> builds of the board itself. Perhaps it should be extended to deal with
> add-on board functionality too?
> 
> More obvious is using the CONFIG system to just enable this if
> CUED_IO_BOARD is configured.

You can just disable the PCF driver if you want to save space. In case you won't 
have the CUED board connected, the driver will just fail to probe so it's ok I 
believe.

The macro could be extended, but do we want such a weird stuff in kernel? 
(especially if the driver can simply fail to probe).
> 
> Wookey



More information about the linux-arm-kernel mailing list