summaryrefslogtreecommitdiffstats
path: root/drivers/staging/iio
Commit message (Collapse)AuthorAgeFilesLines
* staging/trivial: fix typos concerning "access"Uwe Kleine-König2010-09-041-1/+1
| | | | | Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging: iio: documentation - partial update to make more of it true.Jonathan Cameron2010-09-043-61/+10
| | | | | | Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk> Acked-by: Manuel Stahl <manuel.stahl@iis.fraunhofer.de> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging: iio: lis3l02dqbuffersimple.c bring example up to date.Jonathan Cameron2010-09-042-3/+3
| | | | | | Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk> Acked-by: Manuel Stahl <manuel.stahl@iis.fraunhofer.de> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging: iio: remove odd structure definition.Jonathan Cameron2010-09-041-4/+0
| | | | | | | | | I've no idea where this came from! Also fixed form -> from in comment Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk> Acked-by: Manuel Stahl <manuel.stahl@iis.fraunhofer.de> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging: iio: Make use of the convenient IIO_TRIGGER_NAME_ATTR macroJonathan Cameron2010-09-049-19/+10
| | | | | | Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk> Acked-by: Manuel Stahl <manuel.stahl@iis.fraunhofer.de> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging: iio: Remove deprecated ATTR_TEMP in favour of ATTR_TEMP_RAWJonathan Cameron2010-09-042-9/+2
| | | | | | Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk> Acked-by: Manuel Stahl <manuel.stahl@iis.fraunhofer.de> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging: iio: Remove long dead function definitions from headersJonathan Cameron2010-09-042-78/+0
| | | | | | Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk> Acked-by: Manuel Stahl <manuel.stahl@iis.fraunhofer.de> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging: iio: unecessary header removal and kernel doc clean upJonathan Cameron2010-09-042-15/+65
| | | | | | Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk> Acked-by: Manuel Stahl <manuel.stahl@iis.fraunhofer.de> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging: iio: simplify logic in iio_interrupt_handlerJonathan Cameron2010-09-041-11/+2
| | | | | | Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk> Acked-by: Manuel Stahl <manuel.stahl@iis.fraunhofer.de> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging: iio: convert idr to ida as pointer never providedJonathan Cameron2010-09-042-36/+35
| | | | | | Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk> Acked-by: Manuel Stahl <manuel.stahl@iis.fraunhofer.de> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging: iio: hmc5843 change ABI to comply with documentationManuel Stahl2010-08-311-16/+16
| | | | | | | | | this one completes my last patch set to compile fine for all drivers. Signed-off-by: Manuel Stahl <manuel.stahl@iis.fraunhofer.de> Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk> Signed-off-by: Datta, Shubhrajyoti <shubhrajyoti@ti.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging: iio sync scale unitsManuel Stahl2010-08-317-12/+22
| | | | | | | | | | | g -> ms/s^2 deg -> rad deg/s -> rad/s some temperatures still broken Signed-off-by: Manuel Stahl <manuel.stahl@iis.fraunhofer.de> Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging: iio sync drivers with current ABIManuel Stahl2010-08-3120-152/+247
| | | | | | Signed-off-by: Manuel Stahl <manuel.stahl@iis.fraunhofer.de> Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging: iio partial documentation updateManuel Stahl2010-08-313-57/+57
| | | | | | Signed-off-by: Manuel Stahl <manuel.stahl@iis.fraunhofer.de> Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging: iio move scan_elements into ring bufferManuel Stahl2010-08-3115-289/+292
| | | | | | | | tested with sca3000, adis16400 Signed-off-by: Manuel Stahl <manuel.stahl@iis.fraunhofer.de> Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging: iio: lis3l02dq adjust lis3l02dq_configure_ringManuel Stahl2010-08-311-9/+10
| | | | | | | | Now fits other driver's structure for easier modification. Signed-off-by: Manuel Stahl <manuel.stahl@iis.fraunhofer.de> Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging: iio rename ring attributesManuel Stahl2010-08-3113-64/+64
| | | | | | | | | bps -> bytes_per_datum ring_enable -> enable Signed-off-by: Manuel Stahl <manuel.stahl@iis.fraunhofer.de> Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* Staging: iio: signedness bugDan Carpenter2010-08-311-2/+2
| | | | | | | | | | | | i2c_smbus_read_byte_data() returns an s32 type. We need to change "rate" to signed for the error handling to work. Also I changed it to propogate the error code instead of just returning -EINVAL. Other error codes could be -EAGAIN for example. Signed-off-by: Dan Carpenter <error27@gmail.com> Acked-by: Jonathan Cameron <jic23@cam.ac.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* drivers/staging/iio: call mutex_unlock in error handling codeJulia Lawall2010-08-311-8/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Adjust the error handling code so that it benefits from the call to mutex_unlock at the end of the function. The semantic match that finds this problem is as follows: (http://coccinelle.lip6.fr/) // <smpl> @rcu exists@ position p1; expression E; @@ mutex_lock@p1(E); ... mutex_unlock(E); @exists@ position rcu.p1; expression E; @@ *mutex_lock@p1(E); ... when != mutex_unlock(E); ?*return ...; // </smpl> Signed-off-by: Julia Lawall <julia@diku.dk> Acked-by: Jonathan Cameron <jic23@cam.ac.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging: iio: ring_sw Fix pointer arithmetic for 64bit arches by using ↵Jonathan Cameron2010-08-021-1/+1
| | | | | | | | phys_addr_t Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk> Acked-by: Randy Dunlap <randy.dunlap@oracle.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging: iio: ring_sw remove unnecessary function stub.Jonathan Cameron2010-08-021-2/+0
| | | | | | Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk> Acked-by: Randy Dunlap <randy.dunlap@oracle.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging: iio: ring_sw Add select of triggers to avoid build issue.Jonathan Cameron2010-08-021-0/+1
| | | | | | | | | Currently all drivers that use ring_sw use triggers and I am yet to see a good reason for any driver not doing so. Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk> Acked-by: Randy Dunlap <randy.dunlap@oracle.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging: iio: adis16350 add dummy ring functions for no ring build caseJonathan Cameron2010-08-021-0/+8
| | | | | | Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk> Acked-by: Randy Dunlap <randy.dunlap@oracle.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging: iio: lis3l02dq add a thresh_timestamp field to state for no ring caseJonathan Cameron2010-08-022-7/+9
| | | | | | Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk> Acked-by: Randy Dunlap <randy.dunlap@oracle.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging: iio: iio_sw_ring_helper_state - add dummy case for no buffer builds.Jonathan Cameron2010-08-021-0/+3
| | | | | | Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk> Acked-by: Randy Dunlap <randy.dunlap@oracle.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* Staging: IIO: typo in Documentation/overview.txtMatthias Brugger2010-07-261-1/+1
| | | | | | Signed-off-by: Matthias Brugger <mensch0815@gmail.com> Acked-by: Jonathan Cameron <jic23@cam.ac.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* Staging: iio: add digital compass hmc5843 driverShubhrajyoti D2010-07-225-0/+646
| | | | | | | | | | | | Adding support for the Honeywell HMC5843. The interface to the device is i2c TODO: Adding the documentation Signed-off-by: Shubhrajyoti D <shubhrajyoti@ti.com> Acked-by: Jonathan Cameron <jic23@cam.ac.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging: iio: lis3l02dq: use iio_sw_ring_helper_state and funcsJonathan Cameron2010-07-223-138/+123
| | | | | | Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk> Acked-by: Barry Song <21cnbao@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging: iio: Add iio_sw_ring_helper_state and functions to cover common case.Jonathan Cameron2010-07-222-0/+54
| | | | | | Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk> Acked-by: Barry Song <21cnbao@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging: iio: Make extensive use of iio_sw_ring_preenableJonathan Cameron2010-07-227-181/+14
| | | | | | Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk> Acked-by: Barry Song <21cnbao@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging: iio: Add a bits per element element to ring_generic allowing a ↵Barry Song2010-07-223-1/+28
| | | | | | | | general ring_sw_preenable_function. Signed-off-by: Barry Song <21cnbao@gmail.com> Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging: iio: Fix scan_element naming issueJonathan Cameron2010-07-227-66/+59
| | | | | | | | | | The addition of a number to the scan_element names caused an issue in drivers that used either #define or an enum to provide the number. Before this fix names like ADIS16350_ACCEL_X_accel_x_en occur rather than 5_accel_x_en. Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging: iio: Add stubs for iio_ring_buffer_[un]register and equivalent ↵Jonathan Cameron2010-07-2224-190/+42
| | | | | | | | driver stubs Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk> Acked-by: Barry Song <21cnbao@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging: iio: imu: allow adis16300 and adis16400 to build without ring ↵Jonathan Cameron2010-07-221-6/+4
| | | | | | | | buffer support. Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk> Acked-by: Barry Song <21cnbao@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging: iio: replace combine_8_to_16 with be16_to_cpup where possible.Jonathan Cameron2010-07-226-84/+18
| | | | | | Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk> Acked-by: Barry Song <21cnbao@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging: iio: remove timestamp field from trigger and pass instead through ↵Jonathan Cameron2010-07-2218-42/+39
| | | | | | | pollfuncs Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging: iio: Add iio_triggered_ring postenable and predisable + use in driversJonathan Cameron2010-07-2210-158/+41
| | | | | | Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk> Acked-by: Barry Song <21cnbao@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging: iio: Add and convert drivers to use iio_alloc_pollfuncJonathan Cameron2010-07-2210-56/+46
| | | | | | Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk> Acked-by: Barry Song <21cnbao@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging: iio: Use kasprintf to allocate and fill trig->nameJonathan Cameron2010-07-2211-54/+30
| | | | | Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging:iio:max1363 add theshold event supportJonathan Cameron2010-07-083-23/+721
| | | | | Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging:iio: Add ability to have event attributes with awkward namesJonathan Cameron2010-07-081-0/+8
| | | | | Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging:iio: tsl2563 abi fixes and interrupt handlingJonathan Cameron2010-07-082-96/+300
| | | | | Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging:iio: Fix IIO_EVENT_ATTR initialization of list headJonathan Cameron2010-07-081-4/+2
| | | | | Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging:iio: Code cleanupsJonathan Cameron2010-07-082-6/+5
| | | | | Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging:iio: Remove unnecessary event_idr and all referencesJonathan Cameron2010-07-083-25/+4
| | | | | Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging:iio: Remove used iio_work_cont definition and all referencesJonathan Cameron2010-07-089-65/+0
| | | | | Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging:iio:kxsd9 remove unnecessary includesJonathan Cameron2010-07-081-6/+0
| | | | | Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging:iio:lis3l02dq cleanupsJonathan Cameron2010-07-083-27/+10
| | | | | Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging:iio:max1363 trivial code and comment cleanups.Jonathan Cameron2010-07-082-9/+8
| | | | | Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging:iio:max1363 use device_id instead of searching on name againJonathan Cameron2010-07-082-84/+69
| | | | | Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
OpenPOWER on IntegriCloud