lkml.org 
[lkml]   [2011]   [Feb]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [PATCHv2] mcp23s08: support mcp23s17 variant
Date
>>>>> "Peter" == Peter Korsgaard <jacmet@sunsite.dk> writes:

Peter> mpc23s17 is very similar to the mcp23s08, except that registers
Peter> are 16bit wide, so extend the interface to work with both
Peter> variants.

Peter> The s17 variant also has an additional address pin, so adjust
Peter> platform data structure to support up to 8 devices per SPI
Peter> chipselect.

Peter> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Peter> ---
Peter> Changes since v1:
Peter> - Add mcp23s08_ops callbacks for 8 and 16 bit instead of handling both
Peter> in the same accessor function as requested by Grant.
Peter> - Don't use a temporary buffer for 8bit version of read_regs -
Peter> Stack addresses are not DMA safe.

Ping? Any comments?

--
Bye, Peter Korsgaard


\
 
 \ /
  Last update: 2011-02-25 13:31    [W:0.058 / U:0.144 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site