Linux IIO development
 help / color / mirror / Atom feed
* [PATCH 0/6] staging:iio Update drivers and docu
@ 2010-08-31  9:32 Manuel Stahl
  2010-08-31  9:32 ` [PATCH 1/6] staging:iio rename ring attributes Manuel Stahl
                   ` (5 more replies)
  0 siblings, 6 replies; 9+ messages in thread
From: Manuel Stahl @ 2010-08-31  9:32 UTC (permalink / raw)
  To: greg; +Cc: jic23, linux-iio

Hello Greg,

this patch series updates the iio drivers and docu to the latest
discussion in the linux-iio mailing list. Mainly some cleanup of
userspace ABI and streamlining the drivers.

The last patch fixes some unit scaling, but Jonathan Cameron and I
could not agree on how strictly we want to resamble the hwmon ABI.

To sum up the discussion:
Hwmon has files with the postfix _input to read values scaled to
reasonable units for fixed point representation. So the units are
sometimes scaled down to 'millis' e.g. millivolt, millidegree Celsius.
We agreed that we want to keep this, whenever we use the _input postfix.
For IIO there is also the postfix triple _raw, _scale and _offset,
where the final value is calculated by (_raw + _offset) * _scale.
Floating point values are allowed for any of these files.

The question in place was:
Do we want to resamble the 'milli' units or should we stick to
standard SI units (radians, kelvin, etc.) as floating point math is
necessary anyway.

Regards,
Manuel

[PATCH 1/6] staging:iio rename ring attributes
[PATCH 2/6] staging:iio:lis3l02dq adjust lis3l02dq_configure_ring
[PATCH 3/6] staging:iio move scan_elements into ring buffer
[PATCH 4/6] staging:iio partial documentation update
[PATCH 5/6] staging:iio sync drivers with current ABI
[PATCH 6/6] staging:iio sync scale units

 drivers/staging/iio/Documentation/ring.txt        |    6 +-
 drivers/staging/iio/Documentation/sysfs-class-iio |   72 ++++++------
 drivers/staging/iio/Documentation/userspace.txt   |   36 +++---
 drivers/staging/iio/accel/accel.h                 |   42 ++++++-
 drivers/staging/iio/accel/adis16209_core.c        |   30 ++----
 drivers/staging/iio/accel/adis16209_ring.c        |   49 ++++----
 drivers/staging/iio/accel/adis16220_core.c        |   14 ++-
 drivers/staging/iio/accel/adis16240_core.c        |   27 +++--
 drivers/staging/iio/accel/adis16240_ring.c        |   41 ++++----
 drivers/staging/iio/accel/inclinometer.h          |    2 +
 drivers/staging/iio/accel/lis3l02dq_core.c        |    2 +-
 drivers/staging/iio/accel/lis3l02dq_ring.c        |   62 ++++++-----
 drivers/staging/iio/accel/sca3000_core.c          |    4 +-
 drivers/staging/iio/accel/sca3000_ring.c          |   12 +-
 drivers/staging/iio/adc/adc.h                     |    7 +
 drivers/staging/iio/adc/max1363_core.c            |    1 -
 drivers/staging/iio/adc/max1363_ring.c            |   18 ++--
 drivers/staging/iio/gyro/adis16260_core.c         |   22 ++--
 drivers/staging/iio/gyro/adis16260_ring.c         |   39 +++----
 drivers/staging/iio/gyro/gyro.h                   |   46 +++++++--
 drivers/staging/iio/iio.h                         |   98 -----------------
 drivers/staging/iio/imu/adis16300_core.c          |   36 ++++---
 drivers/staging/iio/imu/adis16300_ring.c          |   51 ++++-----
 drivers/staging/iio/imu/adis16350_core.c          |   45 ++++++--
 drivers/staging/iio/imu/adis16350_ring.c          |   55 +++++-----
 drivers/staging/iio/imu/adis16400_core.c          |   51 +++++----
 drivers/staging/iio/imu/adis16400_ring.c          |   57 +++++-----
 drivers/staging/iio/industrialio-core.c           |   12 --
 drivers/staging/iio/industrialio-ring.c           |   46 +++++---
 drivers/staging/iio/ring_generic.h                |  122 +++++++++++++++++++--
 drivers/staging/iio/ring_sw.c                     |   79 +++++++-------
 drivers/staging/iio/ring_sw.h                     |   12 +-
 drivers/staging/iio/sysfs.h                       |   17 ++-
 33 files changed, 661 insertions(+), 552 deletions(-)

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2010-08-31 18:40 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-08-31  9:32 [PATCH 0/6] staging:iio Update drivers and docu Manuel Stahl
2010-08-31  9:32 ` [PATCH 1/6] staging:iio rename ring attributes Manuel Stahl
2010-08-31 18:24   ` Jonathan Cameron
2010-08-31 18:40     ` Greg KH
2010-08-31  9:32 ` [PATCH 2/6] staging:iio:lis3l02dq adjust lis3l02dq_configure_ring Manuel Stahl
2010-08-31  9:32 ` [PATCH 3/6] staging:iio move scan_elements into ring buffer Manuel Stahl
2010-08-31  9:32 ` [PATCH 4/6] staging:iio partial documentation update Manuel Stahl
2010-08-31  9:32 ` [PATCH 5/6] staging:iio sync drivers with current ABI Manuel Stahl
2010-08-31  9:32 ` [PATCH 6/6] staging:iio sync scale units Manuel Stahl

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox