aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2011-05-19staging:iio:adc:ad799x move to irqchip based trigger handling.Jonathan Cameron3-39/+28
Untested. Also cleared out last_timestamp as it isn't used anywhere. Signed-off-by: Jonathan Cameron <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
2011-05-19staging:iio:adc:ad7887 move to irqchip based trigger handling.Jonathan Cameron3-38/+27
Untested. Signed-off-by: Jonathan Cameron <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
2011-05-19staging:iio:adc:ad7606 conversion to irq_chip based polling.Jonathan Cameron3-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 <[email protected]> Acked-by: Michael Hennerich <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
2011-05-19staging:iio:adc:ad7298 move to irqchip based trigger handling.Jonathan Cameron3-43/+26
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 <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
2011-05-19staging:iio:accel:adis16240 move to irqchip based trigger handling.Jonathan Cameron3-65/+43
Untested. Signed-off-by: Jonathan Cameron <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
2011-05-19staging:iio:accel:adis16209 move to irqchip based trigger handling.Jonathan Cameron3-61/+45
Untested. Signed-off-by: Jonathan Cameron <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
2011-05-19staging:iio:accel:adis16204 move to irqchip based trigger handling.Jonathan Cameron3-67/+42
Untested. Signed-off-by: Jonathan Cameron <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
2011-05-19staging:iio:accel:adis16203 move to irqchip based trigger handling.Jonathan Cameron3-65/+42
Untested. Signed-off-by: Jonathan Cameron <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
2011-05-19staging:iio:accel:adis16201 move to irqchip based trigger handling.Jonathan Cameron3-65/+40
Untested. Signed-off-by: Jonathan Cameron <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
2011-05-19staging:iio:imu remove adis16300 driver.Jonathan Cameron6-1286/+0
Support is now provided by the unified adis16400 driver. Signed-off-by: Jonathan Cameron <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
2011-05-19staging:iio:imu:adis16400 add support for adis16300Jonathan Cameron3-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 <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
2011-05-19staging:iio:imu remove old adis16350. Support now in adis16400 driver.Jonathan Cameron6-1278/+0
Signed-off-by: Jonathan Cameron <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
2011-05-19staging:iio:imu:adis16350 etc support into adis16400 driver.Jonathan Cameron5-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 <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
2011-05-19staging:iio:imu:adis16400 move to irq based triggers and channel spec ↵Jonathan Cameron4-365/+282
channel registration. V2: rebase fixup. Signed-off-by: Jonathan Cameron <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
2011-05-19staging:iio:meter:ade7758 move to irqchip based trigger handling.Jonathan Cameron2-37/+26
Untested Signed-off-by: Jonathan Cameron <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
2011-05-19staging:iio:adc:ad7476 move to irqchip based triggeringJonathan Cameron3-46/+26
Untested V2: Fixed missing free of pollfunc->name pointed out by Michael Hennerich. Signed-off-by: Jonathan Cameron <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
2011-05-19staging:iio:adc:ad7476 use channel_specJonathan Cameron3-110/+74
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 <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
2011-05-19staging:iio:adc:max1363 move to irqchip based threaded irq triggeringJonathan Cameron3-47/+26
V2: Fixed missing free of pollfunc->name as pointed out by Michael Hennerich. Signed-off-by: Jonathan Cameron <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
2011-05-19staging:iio:accel:lis3l02dq move to threaded trigger handling.Jonathan Cameron3-91/+56
V2: Cleaned up handling of name string. Signed-off-by: Jonathan Cameron <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
2011-05-19staging:iio: add generic data ready poll function.Jonathan Cameron2-0/+9
This case is extremely common, so let us only have the one copy. Signed-off-by: Jonathan Cameron <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
2011-05-19staging:iio:ring_sw add function needed for threaded irq.Jonathan Cameron2-4/+11
Signed-off-by: Jonathan Cameron <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
2011-05-19staging:iio:Documentation generic_buffer.c update to new abi for buffers + ↵Jonathan Cameron2-74/+39
misc fixes Trivial space before newline fix incorporated. Additional fixes related to handling of sign extension and shifted data. Signed-off-by: Jonathan Cameron <[email protected]> squash into buffer handling update. Signed-off-by: Greg Kroah-Hartman <[email protected]>
2011-05-19staging:iio: Add infrastructure for irq_chip based triggersJonathan Cameron3-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 <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
2011-05-19staging:iio:accel:lis3l02dq make threshold interrupt threaded.Jonathan Cameron2-90/+73
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 <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
2011-05-19staging:iio: Remove legacy event handling.Jonathan Cameron8-600/+85
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 <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
2011-05-19staging:iio:adc:ad799x move to new event handlingJonathan Cameron2-138/+115
Untested. Signed-off-by: Jonathan Cameron <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
2011-05-19staging:iio:adc:ad7314 remove unmatched unregister of event line.Jonathan Cameron1-7/+0
Signed-off-by: Jonathan Cameron <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
2011-05-19staging:iio:adt7310 move to current event handlingJonathan Cameron1-91/+64
Another driver that has two event lines, but pushes all events out the same chrdev. Probably needs a rethink. Signed-off-by: Jonathan Cameron <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
2011-05-19staging:iio:adc:adt7410 move to current event handlingJonathan Cameron1-90/+61
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 <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
2011-05-19staging:iio:ad7291 move from old event system to current.Jonathan Cameron1-285/+137
This driver needed some tender loving care. It still does. Signed-off-by: Jonathan Cameron <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
2011-05-19staging:iio:adc:adt75 old to new event handling conversionJonathan Cameron1-101/+43
Another one where the events are 'unusual'. Still left sorting that out for another day. Untested changes Signed-off-by: Jonathan Cameron <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
2011-05-19staging:iio:adc:ad7152 remove unregister of interrupt line.Jonathan Cameron1-7/+2
a) This interface is going away b) There is no matching register call so looks like a cut and paste error Trivial sparse warning fix. Signed-off-by: Jonathan Cameron <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
2011-05-19staging:iio:adc:ad7150 move from deprecated event handling plus remove irq ↵Jonathan Cameron1-88/+33
as gpio requirement. Another driver with some very 'non standard' magic event codes. Again I've left it be for now and merely moved it to the new api. There is no reason why the irq in this driver ever had to be a gpio. Scrap that test and clean out unecessary headers. Signed-off-by: Jonathan Cameron <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
2011-05-19staging:iio:adc:ad7816 move from old to current event handling.Jonathan Cameron1-47/+15
I'm not sure what the event is and am very much against the dodgy hack to give it a code. However for now, lets just stop it using the deprecated core handling so we can move on. Signed-off-by: Jonathan Cameron <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
2011-05-19staging:iio:adc:ad7745 move from old to current event handling.Jonathan Cameron1-65/+24
Nice simple one. Not sure we actually want devices outputting datardy signals like that, but I'll leave it for now. Cleaned up some unneeded functions whilst here. Signed-off-by: Jonathan Cameron <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
2011-05-19staging:iio:adt7316 get rid of legacy event handling code.Jonathan Cameron1-269/+97
Note this driver is still a long way from being abi compliant. What I have done here cleans up a few corners, but primarily gets it away from using the infrastructure that is going away. Untested Signed-off-by: Jonathan Cameron <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
2011-05-19staging:iio:dac:ad5504 move from old to new event handling.Jonathan Cameron2-41/+16
Untested, but fairly trivial change here. Signed-off-by: Jonathan Cameron <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
2011-05-19staging:iio:light:tsl2563 remove old style event registration.Jonathan Cameron1-43/+19
Untested. Signed-off-by: Jonathan Cameron <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
2011-05-19staging:iio:buffering remove unused parameter dead_offset from read_last_n ↵Jonathan Cameron7-23/+14
in all buffer implementations. This element has been usused by the core for quite some time. sca3000 set it none the less until the rewrite in the previous patch (and hence didn't work). Signed-off-by: Jonathan Cameron <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
2011-05-19staging:iio:sca3000 extract old event handling and move to poll for events ↵Jonathan Cameron3-709/+510
from buffer Fairly substantial rewrite as the code had bitrotted. A rethink is needed for how to handle variable types in the new chan_spec world. This patch restores sca3000 buffer usage to a working state. V3: Rebase fixups. V2: Move to new version of IIO_CHAN macro Signed-off-by: Jonathan Cameron <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
2011-05-19staging:iio: lis3l02dq - separate entirely interrupt handling for thesholds ↵Jonathan Cameron3-47/+107
from that for the datardy signal. This removes the one and only real user of the rather complex event list management. V3: More trivial rebase fixups. V2: Trivial rebase fixup. Signed-off-by: Jonathan Cameron <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
2011-05-19staging:iio: Push interrupt setup down into the drivers for event lines.Jonathan Cameron2-14/+6
It is much easier to do in driver, and the core does not add much. Note all drivers will have to be updated with this patch. None currently are. Signed-off-by: Jonathan Cameron <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
2011-05-19staging:iio:lis3l02dq: General cleanupJonathan Cameron3-100/+84
As Arnd observed, things are clearner if we pass iio_dev into read and write fucntions. Now uses st for lis3l02dq_state everywhere. Other bits of trivial tidying. Signed-off-by: Jonathan Cameron <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
2011-05-19staging:iio: Buffer device flattening.Jonathan Cameron3-59/+28
Given we now only have one device we don't need the extra layer any more. Hence this patch removes it. Signed-off-by: Jonathan Cameron <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
2011-05-19staging:iio: remove legacy event chrdev for the buffersJonathan Cameron6-103/+5
part of sca3000 driver temporarily disabled (buffer won't run anyway). This section is replaced later in this patch set. Signed-off-by: Jonathan Cameron <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
2011-05-19staging:iio: Add polling of events on the ring access chrdev.Jonathan Cameron3-5/+35
Staging one of combining the ring chrdevs. Signed-off-by: Jonathan Cameron <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
2011-05-19staging:iio: remove ability to escalate events.Jonathan Cameron7-96/+16
Whilst it is possible to output events to say buffers have passed a particular level there are no obvious reasons to actually do so. The upshot of this patch is that buffers will only ever have one threshold turned on at a time. For now sca3000 has it's ring buffer effectively disabled. Fixed later in series. Signed-off-by: Jonathan Cameron <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
2011-05-19staging:iio:max1363 - move to channel_spec registration.Jonathan Cameron3-819/+333
V3: move to single chan registration macro. Also introduce some local macros to greatly reduce code length when setting up the chan_spec arrays for all the different devices. V2: update read_raw for two value approach. Signed-off-by: Jonathan Cameron <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
2011-05-19staging:iio:lis3l02dq - move to new channel_spec approach.Jonathan Cameron3-481/+313
V3: Move to single IIO_CHAN macro. V2: Update to two part read_raw value. Signed-off-by: Jonathan Cameron <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
2011-05-19staging:iio: allow channels to be set up using a table of iio_channel_spec ↵Jonathan Cameron6-54/+1161
structures. V8: Add missing address in IIO_CHAN macro. Spotted by Michael Hennerich. V7: Document additions to iio_dev structure. V6: Fixup the docs for iio_chan_spec structure. V5: Actually have the macro handle the _input type channels (oops) V4: Add ability to do, _input and modified channel naming in a coherent fashion. Scrap all the messy IIO_CHAN_* macros and move to only one. V3: Added more types - intensity and light. V2: Various fixes - some thanks to Arnd. Bug fix for unregistering of event attr group Changed iio_read_channel_info to have two part value - use for raw value read as well. constify the channelspec structures raw write support for calibbias and similar Additional strings for buidling attribute names. Signed-off-by: Jonathan Cameron <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>