lkml.org 
[lkml]   [2011]   [Sep]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Subject[RFC PATCH 0/2 V2] Using regmap with ADIS devices.
Date
Hi Mark,

I've tried your suggestion of doing things at the marshalling level
and would be interested to hear what you think of the result.

Note these patches are not clean yet hence no sign offs.

The tricky bit was triggering the two separate writes per register
and the result is somewhat hacky.

An alternative there would be to add some configuration options to
the spi_write (or allow a couple of varients) so as to break the
long transfer that would generate up and hence bounce the cs line
in the right place. Gah. SPI can be so uggly sometimes.

If this approach isn't acceptable in principle I'll give up and
conclude that these parts will never play well! (which is fine
by me if true).

Jonathan

Jonathan Cameron (2):
regmap: Support half writes and padding between register and value.
staging:iio:imu:adis16400 regmap introduction.

drivers/base/regmap/internal.h | 1 +
drivers/base/regmap/regmap.c | 42 ++++-
drivers/staging/iio/imu/Kconfig | 1 +
drivers/staging/iio/imu/adis16400.h | 2 +
drivers/staging/iio/imu/adis16400_core.c | 301 +++++++++++++++++++-----------
include/linux/regmap.h | 6 +
6 files changed, 234 insertions(+), 119 deletions(-)
--
1.7.3.4



\
 
 \ /
  Last update: 2011-09-08 16:03    [from the cache]
©2003-2011 Jasper Spaans