aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
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]>
2011-05-19Staging: initial version of the nvec driverMarc Dietrich12-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 <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
2011-05-19Staging: sm7xx: printk loglevels modified to match the scenarioanish kumar1-4/+4
KERN_ERR should be used in place of KERN_INFO in the case of error scenarios. Signed-off-by: anish kumar <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
2011-05-19Staging: sm7xx: preferred form for passing a size to memory allocation routinesanish kumar1-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 <[email protected]> Acked-by: Harry Wei <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
2011-05-19Staging: sm7xx: removing extra white spaces,redundant code and using macrosanish kumar2-10/+4
This patch is to remove extra spaces,redundant code and using ARRAY_SIZE macros. Signed-off-by: anish kumar <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
2011-05-19staging: fix mei build when PM is not enabledRandy Dunlap1-1/+1
Fix mei build when CONFIG_PM is not enabled (i.e., fix typo): drivers/staging/mei/main.c:1159: error: 'MEI_PM_OPS' undeclared here (not in a function) Signed-off-by: Randy Dunlap <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
2011-05-19staging: usbip: userspace: bind-driver.c: mark remote_host as unusedmatt mooney1-1/+1
Use __attribute__((unused)) to suppress error until it can be determined that remote_host is not needed. Signed-off-by: matt mooney <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
2011-05-19staging: usbip: userspace: stub_driver.c: update kernel module namematt mooney1-1/+2
Change kernel module name to usbip-host. Signed-off-by: matt mooney <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
2011-05-18comedi vmk80xx: support comedi auto-configurationJ. Ali Harlow1-2/+14
Add support for automatically associating a vmk8055 device with a comedi device (previously the user had to use comedi_num_legacy_minors to reserve device slots and then associate them with vmk8055 devices using comedi_config). Tested on multiple K8055s, but not on K8061s. Signed-off-by: J. Ali Harlow <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
2011-05-18comedi vmk80xx: support bits instructionJ. Ali Harlow1-0/+113
Calling comedi_dio_bifield2() returns EBUSY permanently. Implementing the insn_bits call fixes the problem and is good in its own right since one can then read and write to all the digitial lines at the same time. Tested on a K8055, but not on a K8061. Signed-off-by: J. Ali Harlow <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
2011-05-18comedi vmk80xx: extend rudimentary_check to check both directionsJ. Ali Harlow1-1/+2
rudimentary_check() can currently check whether the input or output direction is currently available (no pending transaction), but not both at the same time. We need this facility for do_bits(). Signed-off-by: J. Ali Harlow <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
2011-05-18comedi vmk80xx: simplify rinsn output calculationJ. Ali Harlow1-4/+2
vmk80xx_di_rinsn() and vmk80xx_do_rinsn() extract the required channel data by inconsistent and overly-complex algorithms. Simplify them both. Signed-off-by: J. Ali Harlow <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
2011-05-18comedi vmk80xx: Digitial I/O should have a maxdata of 1J. Ali Harlow1-2/+2
Digitial input and output sub-devices were reporting a maxdata of 0x1F and 0xFF respectively. They should both be 1. Signed-off-by: J. Ali Harlow <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>