summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* staging:iio:adc:ad7606 Convert to new channel registration method Update Add ↵Michael Hennerich2011-05-203-175/+116Star
| | | | | | | | | | | | | missing call to iio_trigger_notify_done() Set pollfunc top and bottom half handler V3: rebase fixup. Backported to relevant merge point by Jonathan Cameron. V2: IIO_CHAN macro usage update Signed-off-by: Michael Hennerich <michael.hennerich@analog.com> Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging:iio:gyro:adis16260 move to chan_spec based setup.Jonathan Cameron2011-05-204-266/+239Star
| | | | | | | | | | | | | | | | For clean drivers its easier to convert to chan_spec based registration than to work around the scan_el attributes going away. Some minor cleanups done whilst here. Untested. V3: rebase fixup and make attribute_group static. V2: IIO_CHAN macro updates. Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging:iio:accel:adis16240 move to chan_spec based setup.Jonathan Cameron2011-05-204-199/+220
| | | | | | | | | | | | | | For clean drivers its easier to convert to chan_spec based registration than to work around the scan_el attributes going away. Some minor cleanups done whilst here. Untested. V2: IIO_CHAN macro use updated. Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging:iio: Add chan info support for 'peak_raw' attributes.Jonathan Cameron2011-05-202-1/+7
| | | | | Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging:iio:accel: lis3l02dq add writing for calibscale and calibbias.Jonathan Cameron2011-05-201-0/+29
| | | | | | | This was missed out in original chan_spec conversion. Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging:iio:adc:ad7298: Convert to new channel registration methodMichael Hennerich2011-05-203-123/+103Star
| | | | | | | | | | | | | | Convert to new channel registration method Update Add missing call to iio_trigger_notify_done() Backported to a point that will allow the driver to build all the way through the series. V2: IIO_CHAN macro usage updated. Signed-off-by: Michael Hennerich <michael.hennerich@analog.com> Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging:iio:adc:ad799x removed unused headers.Jonathan Cameron2011-05-202-3/+0Star
| | | | | Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging:iio:adc:ad799x: Use private data space from iio_allocate_deviceMichael Hennerich2011-05-203-47/+39Star
| | | | | | | | Use private data space from iio_allocate_device Signed-off-by: Michael Hennerich <michael.hennerich@analog.com> Acked-by: Jonathan Cameron <jic23@cam.ac.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging:iio:adc:ad799x: Convert to new channel registration method.Michael Hennerich2011-05-203-319/+206Star
| | | | | | | | | | | | Convert to new channel registration method Update copyright header Add missing call to iio_trigger_notify_done() V2: IIO_CHAN macro updates Signed-off-by: Michael Hennerich <michael.hennerich@analog.com> Acked-by: Jonathan Cameron <jic23@cam.ac.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging:iio:adc:ad7887: Use private data space from iio_allocate_deviceMichael Hennerich2011-05-203-52/+37Star
| | | | | | Signed-off-by: Michael Hennerich <michael.hennerich@analog.com> Acked-by: Jonathan Cameron <jic23@cam.ac.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging:iio:adc:ad7887: Convert to new channel registration method.Michael Hennerich2011-05-203-138/+67Star
| | | | | | | | | | | | Convert to new channel registration method Update / change license copyright header Add missing call to iio_trigger_notify_done() V2: use IIO_CHAN macro. Signed-off-by: Michael Hennerich <michael.hennerich@analog.com> Acked-by: Jonathan Cameron <jic23@cam.ac.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging:iio:accel:adis16209 move to chan_spec based setup.Jonathan Cameron2011-05-204-277/+232Star
| | | | | | | | | | | | | | For clean drivers its easier to convert to chan_spec based registration than to work around the scan_el attributes going away. Some minor cleanups done whilst here. Untested. V2: IIO_CHAN macro used. Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging:iio:accel:adis16204 move to chan_spec based setup.Jonathan Cameron2011-05-204-259/+220Star
| | | | | | | | | | | | | | | For clean drivers its easier to convert to chan_spec based registration than to work around the scan_el attributes going away. Some minor cleanups done whilst here. Untested. V2: used IIO_CHAN macro Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging:iio:accel:adis16203 move to chan_spec based setup.Jonathan Cameron2011-05-204-257/+195Star
| | | | | | | | | | | | | Mainly motivated by wish to remove the remaing users of the scan helpers. Some minor cleanups done whilst here. Untested. V2: Use IIO_CHAN macro Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging:iio:accel:adis16201 move to chan_spec based setup.Jonathan Cameron2011-05-204-328/+220Star
| | | | | | | | | | | | | | Mainly motivated by wish to remove the remaing users of the scan helpers. Some minor cleanups done whilst here. Untested. V2: IIO_CHAN macro used. Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging:iio:light:tsl2563: chan_spec based channel setup.Jonathan Cameron2011-05-201-206/+117Star
| | | | | | | | Makes a small interface change by splitting event _en attr in two. Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging:iio: use the new central name attribute creation codeJonathan Cameron2011-05-2040-410/+65Star
| | | | | Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging:iio: Add core attribute handling for name of device.Jonathan Cameron2011-05-202-2/+23
| | | | | | | Saves on a fair bit of code replication. Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging:iio:trigger remove legacy pollfunc elements.Jonathan Cameron2011-05-202-123/+20Star
| | | | | Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging:iio:gyro:adis16260 move to irqchip based trigger handling.Jonathan Cameron2011-05-203-74/+46Star
| | | | | | | Untested. Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging:iio:adc:ad799x move to irqchip based trigger handling.Jonathan Cameron2011-05-203-39/+28Star
| | | | | | | Untested. Also cleared out last_timestamp as it isn't used anywhere. Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging:iio:adc:ad7887 move to irqchip based trigger handling.Jonathan Cameron2011-05-203-38/+27Star
| | | | | | | Untested. Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging:iio:adc:ad7606 conversion to irq_chip based polling.Jonathan Cameron2011-05-203-7/+24
| | | | | | | | | | | | I'm far from sure what the best way to handle this particular part is, so have (I think) done the absolute minimum to change it to the new interface. V2: Trivial constification of device name. Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk> Acked-by: Michael Hennerich <michael.hennerich@analog.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging:iio:adc:ad7298 move to irqchip based trigger handling.Jonathan Cameron2011-05-203-43/+26Star
| | | | | | | | | Untested. This one is of a different form, so worth a closer look than the previous incredibly similar patches (which were based on the adis16400 that I have tested). Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging:iio:accel:adis16240 move to irqchip based trigger handling.Jonathan Cameron2011-05-203-65/+43Star
| | | | | | | Untested. Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging:iio:accel:adis16209 move to irqchip based trigger handling.Jonathan Cameron2011-05-203-61/+45Star
| | | | | | | Untested. Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging:iio:accel:adis16204 move to irqchip based trigger handling.Jonathan Cameron2011-05-203-67/+42Star
| | | | | | | Untested. Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging:iio:accel:adis16203 move to irqchip based trigger handling.Jonathan Cameron2011-05-203-65/+42Star
| | | | | | | Untested. Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging:iio:accel:adis16201 move to irqchip based trigger handling.Jonathan Cameron2011-05-203-65/+40Star
| | | | | | | Untested. Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging:iio:imu remove adis16300 driver.Jonathan Cameron2011-05-206-1286/+0Star
| | | | | | | Support is now provided by the unified adis16400 driver. Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging:iio:imu:adis16400 add support for adis16300Jonathan Cameron2011-05-203-4/+56
| | | | | | | | | | | | | Next patch will remove original driver. Note this leaves holes in the scan indexing. Untested - except via adis16350... V3: rebase fixup. V2: move to single IIO_CHAN macro. Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging:iio:imu remove old adis16350. Support now in adis16400 driver.Jonathan Cameron2011-05-206-1278/+0Star
| | | | | Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging:iio:imu:adis16350 etc support into adis16400 driver.Jonathan Cameron2011-05-205-47/+260
| | | | | | | | | | | | | | | Next patch will remove the current adis16350 driver. These should have been merged a long time ago, but there we are. V3: rebase fixup + add missing extend_name for supply on adis16350 V2: Move to single IIO_CHAN macro + use the new extend_name to make the naming of the temperature sensors contain x, y, z rather than messing with modifiers. This a very weird case and I don't want temperature to use axial modifiers. Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging:iio:imu:adis16400 move to irq based triggers and channel spec ↵Jonathan Cameron2011-05-204-365/+282Star
| | | | | | | | | channel registration. V2: rebase fixup. Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging:iio:meter:ade7758 move to irqchip based trigger handling.Jonathan Cameron2011-05-202-37/+26Star
| | | | | | | Untested Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging:iio:adc:ad7476 move to irqchip based triggeringJonathan Cameron2011-05-203-46/+26Star
| | | | | | | | | | Untested V2: Fixed missing free of pollfunc->name pointed out by Michael Hennerich. Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging:iio:adc:ad7476 use channel_specJonathan Cameron2011-05-203-110/+74Star
| | | | | | | | | | | | | | V3: Trivial rebase fixup. V2: Move to new single IIO_CHAN macro. Done without hardware. Fix from Michael Hennerich incorporated to use iio_ring_buffer_register_ex instead of iio_ring_buffer_register and thus actually make it work. Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging:iio:adc:max1363 move to irqchip based threaded irq triggeringJonathan Cameron2011-05-203-47/+26Star
| | | | | | | | V2: Fixed missing free of pollfunc->name as pointed out by Michael Hennerich. Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging:iio:accel:lis3l02dq move to threaded trigger handling.Jonathan Cameron2011-05-203-91/+56Star
| | | | | | | V2: Cleaned up handling of name string. Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging:iio: add generic data ready poll function.Jonathan Cameron2011-05-202-0/+9
| | | | | | | | This case is extremely common, so let us only have the one copy. Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging:iio:ring_sw add function needed for threaded irq.Jonathan Cameron2011-05-202-4/+11
| | | | | Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging:iio:Documentation generic_buffer.c update to new abi for buffers + ↵Jonathan Cameron2011-05-202-74/+39Star
| | | | | | | | | | | | | | misc fixes Trivial space before newline fix incorporated. Additional fixes related to handling of sign extension and shifted data. Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk> squash into buffer handling update. Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging:iio: Add infrastructure for irq_chip based triggersJonathan Cameron2011-05-203-36/+203
| | | | | | | | | | | | | | | | V3: Get rid of separate interrupt pool. This is well handled by irq_get_descs and irq_free_descs. Two functions I simply wasn't aware of previously. Thus the allocation for a given trigger is now handled by core code rather than us reinventing the wheel. V2: Stop silly name duplication. Move pool handling to industrialio-trigger as that is the only user. Changed over to using irq_modify_status rather than the arm specific set_irq_flags as per Thomas Gleixner's suggestion. Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging:iio:accel:lis3l02dq make threshold interrupt threaded.Jonathan Cameron2011-05-202-90/+73Star
| | | | | | | | | We have moved the timestamp acquisition into the bottom half. It may technically be less accurate but for this device I very much doubt anyone cares! Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging:iio: Remove legacy event handling.Jonathan Cameron2011-05-208-600/+85Star
| | | | | | | | | | | This requires all drivers using the channel registration code and events to change in one go. V3: remove unwanted irq enable from event handler. V2: rebase related fixes to move to new IIO_CHAN macro. All trivial. Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging:iio:adc:ad799x move to new event handlingJonathan Cameron2011-05-202-138/+115Star
| | | | | | | Untested. Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging:iio:adc:ad7314 remove unmatched unregister of event line.Jonathan Cameron2011-05-201-7/+0Star
| | | | | Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging:iio:adt7310 move to current event handlingJonathan Cameron2011-05-201-91/+64Star
| | | | | | | | Another driver that has two event lines, but pushes all events out the same chrdev. Probably needs a rethink. Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging:iio:adc:adt7410 move to current event handlingJonathan Cameron2011-05-201-90/+61Star
| | | | | | | | | This device actually has a pair of interrupts. The code basically ignores that and feeds them both to the same handlers. I'm not sure if that is the right thing to do, but the updated code should do exactly the same. Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging:iio:ad7291 move from old event system to current.Jonathan Cameron2011-05-201-285/+137Star
| | | | | | | This driver needed some tender loving care. It still does. Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>