summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* 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>
* staging:iio:adc:adt75 old to new event handling conversionJonathan Cameron2011-05-201-101/+43Star
| | | | | | | | | | Another one where the events are 'unusual'. Still left sorting that out for another day. Untested changes Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging:iio:adc:ad7152 remove unregister of interrupt line.Jonathan Cameron2011-05-201-7/+2Star
| | | | | | | | | | | 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 <jic23@cam.ac.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging:iio:adc:ad7150 move from deprecated event handling plus remove irq ↵Jonathan Cameron2011-05-201-88/+33Star
| | | | | | | | | | | | | | 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 <jic23@cam.ac.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging:iio:adc:ad7816 move from old to current event handling.Jonathan Cameron2011-05-201-47/+15Star
| | | | | | | | | 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 <jic23@cam.ac.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging:iio:adc:ad7745 move from old to current event handling.Jonathan Cameron2011-05-201-65/+24Star
| | | | | | | | | 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 <jic23@cam.ac.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging:iio:adt7316 get rid of legacy event handling code.Jonathan Cameron2011-05-201-269/+97Star
| | | | | | | | | | | 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 <jic23@cam.ac.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging:iio:dac:ad5504 move from old to new event handling.Jonathan Cameron2011-05-202-41/+16Star
| | | | | | | Untested, but fairly trivial change here. Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging:iio:light:tsl2563 remove old style event registration.Jonathan Cameron2011-05-201-43/+19Star
| | | | | | | Untested. Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging:iio:buffering remove unused parameter dead_offset from read_last_n ↵Jonathan Cameron2011-05-207-23/+14Star
| | | | | | | | | | 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 <jic23@cam.ac.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging:iio:sca3000 extract old event handling and move to poll for events ↵Jonathan Cameron2011-05-203-709/+510Star
| | | | | | | | | | | | | | 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 <jic23@cam.ac.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging:iio: lis3l02dq - separate entirely interrupt handling for thesholds ↵Jonathan Cameron2011-05-203-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 <jic23@cam.ac.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging:iio: Push interrupt setup down into the drivers for event lines.Jonathan Cameron2011-05-202-14/+6Star
| | | | | | | | | 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 <jic23@cam.ac.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging:iio:lis3l02dq: General cleanupJonathan Cameron2011-05-203-100/+84Star
| | | | | | | | | | | 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 <jic23@cam.ac.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging:iio: Buffer device flattening.Jonathan Cameron2011-05-203-59/+28Star
| | | | | | | | 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 <jic23@cam.ac.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging:iio: remove legacy event chrdev for the buffersJonathan Cameron2011-05-206-103/+5Star
| | | | | | | | 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 <jic23@cam.ac.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging:iio: Add polling of events on the ring access chrdev.Jonathan Cameron2011-05-203-5/+35
| | | | | | | Staging one of combining the ring chrdevs. Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging:iio: remove ability to escalate events.Jonathan Cameron2011-05-207-96/+16Star
| | | | | | | | | | | | | | 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 <jic23@cam.ac.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging:iio:max1363 - move to channel_spec registration.Jonathan Cameron2011-05-203-819/+333Star
| | | | | | | | | | | 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 <jic23@cam.ac.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging:iio:lis3l02dq - move to new channel_spec approach.Jonathan Cameron2011-05-203-481/+313Star
| | | | | | | | V3: Move to single IIO_CHAN macro. V2: Update to two part read_raw value. Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging:iio: allow channels to be set up using a table of iio_channel_spec ↵Jonathan Cameron2011-05-206-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 <jic23@cam.ac.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* Staging: initial version of the nvec driverMarc Dietrich2011-05-2012-0/+1543
| | | | | | | | | This is an implementation of a NVidia compliant embedded controller protocol driver. It is used on some ARM-Tegra boards for device communication. Signed-off-by: Marc Dietrich <marvin24@gmx.de> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* Staging: sm7xx: printk loglevels modified to match the scenarioanish kumar2011-05-201-4/+4
| | | | | | | | KERN_ERR should be used in place of KERN_INFO in the case of error scenarios. Signed-off-by: anish kumar <anish198519851985@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* Staging: sm7xx: preferred form for passing a size to memory allocation routinesanish kumar2011-05-201-1/+1
| | | | | | | | | | The preferred form for passing a size of a struct is the following: p = kmalloc(sizeof(*p), ...); Please refer Documentation/Codingstyle chapter 14 Signed-off-by: anish kumar <anish198519851985@gmail.com> Acked-by: Harry Wei <harryxiyou@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* Staging: sm7xx: removing extra white spaces,redundant code and using macrosanish kumar2011-05-202-10/+4Star
| | | | | | | | This patch is to remove extra spaces,redundant code and using ARRAY_SIZE macros. Signed-off-by: anish kumar <anish198519851985@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>