linux/drivers/staging/iio
Jonathan Cameron fc89b38db0 staging: iio: amend macros for SCAN_EL creation to add separate index attr
As Manuel Stahl observed, putting data into the naming of an attribute
(beyond what it is for) breaks the one value per attribute rule (in spirit
at least).  Hence we introduce a separate _index attribute for each scan
element to tell userspace the ordering in output from the buffer.

This will generate a lot of sparse warnings as all drivers will have unused
iio_const_attrs created.  The rest of the set will clean these up.

The final patch will remove the old indexing method. It is not here so
as to maintain one or other interface for all devices as this set
progresses.

Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk>
Signed-off-by: Manuel Stahl <manuel.stahl@iis.fraunhofer.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2010-09-21 10:34:41 -07:00
..
accel staging: iio: Remove unused bit_count from struct iio_scan_el 2010-09-21 10:34:41 -07:00
adc staging: iio: Remove unused bit_count from struct iio_scan_el 2010-09-21 10:34:41 -07:00
Documentation staging: iio: documentation - partial update to make more of it true. 2010-09-04 21:19:02 -07:00
gyro staging: iio: Remove unused bit_count from struct iio_scan_el 2010-09-21 10:34:41 -07:00
imu staging: iio: Remove unused bit_count from struct iio_scan_el 2010-09-21 10:34:41 -07:00
light staging:iio: tsl2563 abi fixes and interrupt handling 2010-07-08 12:25:29 -07:00
magnetometer staging: iio: ak8975: Add ak8975 magnetometer sensor 2010-09-14 16:37:11 -07:00
trigger staging: iio: Make use of the convenient IIO_TRIGGER_NAME_ATTR macro 2010-09-04 21:19:01 -07:00
chrdev.h staging: iio: Remove long dead function definitions from headers 2010-09-04 21:19:00 -07:00
iio.h staging: iio: convert idr to ida as pointer never provided 2010-09-04 21:18:59 -07:00
industrialio-core.c staging: iio: simplify logic in iio_interrupt_handler 2010-09-04 21:18:59 -07:00
industrialio-ring.c staging: iio: unecessary header removal and kernel doc clean up 2010-09-04 21:19:00 -07:00
industrialio-trigger.c staging: iio: remove timestamp field from trigger and pass instead through pollfuncs 2010-07-22 11:38:28 -07:00
Kconfig staging: iio: ring_sw Add select of triggers to avoid build issue. 2010-08-02 17:06:04 -07:00
Makefile Staging: iio: add digital compass hmc5843 driver 2010-07-22 14:26:57 -07:00
ring_generic.h staging: iio: amend macros for SCAN_EL creation to add separate index attr 2010-09-21 10:34:41 -07:00
ring_hw.h
ring_sw.c staging: iio move scan_elements into ring buffer 2010-08-31 11:42:02 -07:00
ring_sw.h staging: iio rename ring attributes 2010-08-31 11:42:01 -07:00
sysfs.h staging: iio: Remove deprecated ATTR_TEMP in favour of ATTR_TEMP_RAW 2010-09-04 21:19:00 -07:00
TODO Staging: iio: Add mailing list to the TODO file. 2010-06-18 13:14:33 -07:00
trigger_consumer.h Staging: iio: Staticise non-exported functions 2010-03-03 16:43:02 -08:00
trigger.h staging: iio: lis3l02dqbuffersimple.c bring example up to date. 2010-09-04 21:19:02 -07:00