Re: [PATCHv2-RESEND] mcp23s08: support mcp23s17 variant

From: Grant Likely
Date: Sat Mar 12 2011 - 03:29:14 EST


On Wed, Mar 09, 2011 at 05:56:30PM +0100, Peter Korsgaard wrote:
> mpc23s17 is very similar to the mcp23s08, except that registers are 16bit
> wide, so extend the interface to work with both variants.
>
> The s17 variant also has an additional address pin, so adjust platform
> data structure to support up to 8 devices per SPI chipselect.
>
> Signed-off-by: Peter Korsgaard <jacmet@xxxxxxxxxx>

Merged, thanks.

g.

> ---
> Resend without any changes since v2 on Feb 15th.
>
> Changes since v1:
> - Add mcp23s08_ops callbacks for 8 and 16 bit instead of handling both
> in the same accessor function as requested by Grant.
> - Don't use a temporary buffer for 8bit version of read_regs -
> Stack addresses are not DMA safe.
>
> drivers/gpio/Kconfig | 6 +-
> drivers/gpio/mcp23s08.c | 191 +++++++++++++++++++++++++++++++-----------
> include/linux/spi/mcp23s08.h | 15 ++--
> 3 files changed, 155 insertions(+), 57 deletions(-)
>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/