History log of /drivers/staging/iio/gyro/adis16260_trigger.c
Revision Date Author Comments
8e336a722bb234f9d7805647e0290f2a397ca04d 10-Jul-2011 Paul Gortmaker <paul.gortmaker@windriver.com> staging: Add export.h for THIS_MODULE/EXPORT_SYMBOL to drivers/staging users.

Lots of drivers have in the past expected the presence of basic things
like THIS_MODULE and EXPORT_SYMBOL. With the header cleanup, they wont
have these. Call out the include explicitly.

Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
17ee97e5f30995baf00f490e3facfea9996630ab 12-Aug-2011 Jonathan Cameron <jic23@cam.ac.uk> staging:iio:gyro and meter: header housecleaning.

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>
d088ab838859507c34191484cdf993105d2fa2b5 27-Jun-2011 Jonathan Cameron <jic23@cam.ac.uk> staging:iio:gyro:adis16260: allocate chip state with iio_dev and use iio_priv to access.

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>
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>
29b7f43ef41bdbdd35dc54ea878efb855c224b7b 18-May-2011 Jonathan Cameron <jic23@cam.ac.uk> staging:iio:gyro:adis16260 move to chan_spec based setup.

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>
504b4958ff4c578fb153b1f526b2812946d7ddff 18-May-2011 Jonathan Cameron <jic23@cam.ac.uk> staging:iio:gyro:adis16260 move to irqchip based trigger handling.

Untested.

Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
ab8d48d453b2793744ef73d4d3d6a1b602d044fd 18-Apr-2011 Jonathan Cameron <jic23@cam.ac.uk> staging:iio:adis16260 replace unnecessary event line registration.

Whilst the adis16260 does indeed support events, currently the driver
does not. The trigger code should never use that infrastructure.

Untested - but identical in form to those that have been.

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>
9dbfb6f14a85ef4af5c0a8a49a5ff57591171ad1 04-Sep-2010 Jonathan Cameron <jic23@cam.ac.uk> staging: iio: Make use of the convenient IIO_TRIGGER_NAME_ATTR macro

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>
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>
089a41985c6c7e69c8fe043c0dd397da628254f5 12-May-2010 Barry Song <Barry.Song@analog.com> staging: iio: adis16260 digital gyro driver

Signed-off-by: Barry Song <Barry.Song@analog.com>
Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>