c0fdbe149c9d1cab9057c39a10cd609751541cf2 |
|
14-Dec-2011 |
Jonathan Cameron <jic23@kernel.org> |
staging:iio: iio_trigger contains defunct owner field. Remove it. This field moved into the trigger_ops structure a while back, but somehow never quite got cleared up. This clears the last few drivers to set it (nothing uses it) and gets rid of it entirely. Signed-off-by: Jonathan Cameron <jic23@kernel.org> Acked-by: Lars-Peter Clausen <lars@metafoo.de> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
|
b9075fa968a0a4347aef35e235e2995c0e57dddd |
|
01-Nov-2011 |
Joe Perches <joe@perches.com> |
treewide: use __printf not __attribute__((format(printf,...))) Standardize the style for compiler based printf format verification. Standardized the location of __printf too. Done via script and a little typing. $ grep -rPl --include=*.[ch] -w "__attribute__" * | \ grep -vP "^(tools|scripts|include/linux/compiler-gcc.h)" | \ xargs perl -n -i -e 'local $/; while (<>) { s/\b__attribute__\s*\(\s*\(\s*format\s*\(\s*printf\s*,\s*(.+)\s*,\s*(.+)\s*\)\s*\)\s*\)/__printf($1, $2)/g ; print; }' [akpm@linux-foundation.org: revert arch bits] Signed-off-by: Joe Perches <joe@perches.com> Cc: "Kirill A. Shutemov" <kirill@shutemov.name> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
|
99c978529a40132a6f7a5f136b4362b56fc88d8c |
|
03-Jul-2011 |
Paul Gortmaker <paul.gortmaker@windriver.com> |
staging: Add module.h to drivers/staging users Lots of people expect module.h to just "be there" without any #include effort. But we are crushing that. So fix those files in staging relying on implicit module.h presence. Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
|
208b813c04ef7e628783cc62eeb1a140ae25bd19 |
|
24-Aug-2011 |
Jonathan Cameron <jic23@cam.ac.uk> |
staging:iio:trigger push functions that don't need to be generaly available down into the core. Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
|
3f72395ee595a2a2fe1ed01c006c4f0cce313512 |
|
24-Aug-2011 |
Jonathan Cameron <jic23@cam.ac.uk> |
staging:iio: spit trigger.h into provider and consumer parts. Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
|
e65bc6ac6fa54959ac0b3712b0f35bbf073c073e |
|
24-Aug-2011 |
Jonathan Cameron <jic23@cam.ac.uk> |
staging:iio:pollfunc: Make explicit that private data is always pointer to a struct iio_dev. This is always true, so lets make it explicit. Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
|
82db4249a2bd8b19c734e1ec4db0d6a56849b9a0 |
|
24-Aug-2011 |
Jonathan Cameron <jic23@cam.ac.uk> |
staging:iio:triggers reorder module put and device put to ensure that the ops are still there if put results in device deletion. Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
|
d29f73db791098179af90e6a5b1df41f941b32cd |
|
12-Aug-2011 |
Jonathan Cameron <jic23@cam.ac.uk> |
staging:iio:triggers introduce iio_trigger_ops to take const bits out of iio_trig_structure. Right now this results in increased code, but I still think it is worth doing to avoid replication across instances of drivers etc and move as much stuff as possible to constant. Ops structure is optional for the occasional driver that uses none of it (currently only the ad7793). Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
|
43a4360ea8f075540cb7c1efc8d643b4261eb901 |
|
27-Jun-2011 |
Michael Hennerich <michael.hennerich@analog.com> |
iio: trigger: Add filter callback Allow devices to reject triggers and vice versa. Changes since V1: Added kernel-doc Moved callback into iio_info Changed function naming Revised return value passing Add forward declaration to avoid warnings 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>
|
03e1672a70be991a9e84d67b2d2143313938e1a8 |
|
27-Jun-2011 |
Michael Hennerich <michael.hennerich@analog.com> |
iio: trigger: Move declaration of struct iio_poll_func to avoid warnings Move declaration of struct iio_poll_func to avoid warnings 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>
|
21b185f8d5951ebbf76d61f431fb541dce5113d1 |
|
18-May-2011 |
Jonathan Cameron <jic23@cam.ac.uk> |
staging:iio: poll func allocation clean up. Add a function to neatly deal with allocation of poll functions. Ultimately this allows us to more easily change the implementation. Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
|
59c85e82c2e7a672cb4342dc5ccf9df8a3a14f73 |
|
18-May-2011 |
Jonathan Cameron <jic23@cam.ac.uk> |
staging:iio:trigger handle name attr in core, remove old alloc and register any control_attrs via struct device As the majority of triggers don't actually have any other control_attrs lets use the fact that struct device has a groups element when we do need to have these attributes registered. A vargs function is used to cut down on lots of building strings in every single driver just in order to pass them into the allocate. Also iio_allocate_trigger_named -> iio_allocate_trigger as there is no unamed version any more, so that is now just confusing. Blackfin tested and fixed by Michael Hennerich. V2: Elements from Michael Hennerich's patches for the ade7758 Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
|
1f785681a87068f123d3e23da13b2c55ab4f93ac |
|
18-May-2011 |
Jonathan Cameron <jic23@cam.ac.uk> |
staging:iio:trigger sysfs userspace trigger rework. Awaiting comments on using the nested_irq_trick so that may change. Moves away from platform device to sysfs controlled creation and removal of these triggers. Fix double free of name on trigger allocation failure thanks to Michael Hennerich. Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk> Reviewed-by: Michael Hennerich <michael.hennerich@analog.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
|
51c060a069376385bc0c2f8010121303d3b7bd57 |
|
18-May-2011 |
Jonathan Cameron <jic23@cam.ac.uk> |
staging:iio:trigger remove legacy pollfunc elements. Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
|
8384d9573e937949eba96eaa1323253c2687aa5c |
|
18-May-2011 |
Jonathan Cameron <jic23@cam.ac.uk> |
staging:iio: add generic data ready poll function. 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>
|
d96d1337e339521a2bd56dc9d51fef140c1a49ee |
|
18-May-2011 |
Jonathan Cameron <jic23@cam.ac.uk> |
staging:iio: Add infrastructure for irq_chip based triggers 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>
|
f6517f22d4f6336ce37dc6b72aae4704ff872ba3 |
|
15-Apr-2011 |
Jonathan Cameron <jic23@cam.ac.uk> |
staging:iio:trigger remove export of iio_trigger_find_by_name, use sysfs_streq for matching Trivial reorganization. Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
|
04b708124aa72d43d74b2ea559813649593e1d4a |
|
04-Sep-2010 |
Jonathan Cameron <jic23@cam.ac.uk> |
staging: iio: lis3l02dqbuffersimple.c bring example up to date. 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>
|
299475e0d961c3dcf2f0b1a8a2ec6d61846aa52b |
|
04-Sep-2010 |
Jonathan Cameron <jic23@cam.ac.uk> |
staging: iio: remove odd structure definition. 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>
|
7b2c33b11ef003d83c87a58201ff42313e13eff4 |
|
11-Jul-2010 |
Jonathan Cameron <jic23@cam.ac.uk> |
staging: iio: remove timestamp field from trigger and pass instead through pollfuncs Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
|
c3db00cc80cf01f9a2033c3f3eb03345d0024761 |
|
11-Jul-2010 |
Jonathan Cameron <jic23@cam.ac.uk> |
staging: iio: Add iio_triggered_ring postenable and predisable + use in drivers 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>
|
15744090c5ad3ed404a541bdec6f4f9ae1996fc9 |
|
11-Jul-2010 |
Jonathan Cameron <jic23@cam.ac.uk> |
staging: iio: Add and convert drivers to use iio_alloc_pollfunc 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>
|
3c9bbf58b2a7e9099343d36a2c0b206f8c2450df |
|
11-Jul-2010 |
Jonathan Cameron <jic23@cam.ac.uk> |
staging: iio: Use kasprintf to allocate and fill trig->name Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
|
4c572605085d65b7cf4f5b36ccac0f30866d19f9 |
|
05-Oct-2009 |
Randy Dunlap <randy.dunlap@oracle.com> |
Staging: iio: lots of doc fixes Fix iio header files kernel-doc notation errors, spelling, typos, indentation, grammar, etc. It would also be good if these function names were spelled correctly, but I didn't change them: iio_push_or_escallate_ring_event() iio_trigger_dettach_poll_func() Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com> Acked-by: Jonathan Cameron <jic23@cam.ac.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
|
1637db44413e32a0f100dd4bd164644e641842f7 |
|
18-Aug-2009 |
Jonathan Cameron <jic23@cam.ac.uk> |
Staging: IIO: Trigger support added to core. Add general registration support for IIO triggers. These are currently only used to initialize a 'poll' of a given device. Examples include the lis3l02dq's data ready signal being used to initialize a read and gpio triggers being used to allow externally synchronized sensor reading. Each trigger can cause any number of 'consumer' devices to be polled with each storing data into a related ring buffer. Two stage triggering is supported with 'fast' and 'slow' paths. The first is used for things like pulling a data hold line high and the second for actual read which may take far longer. Changes since V2: * As with IIO triggers now use a registration approach much closer to that of input leading to cleaner code. Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
|