~ubuntu-branches/ubuntu/quantal/linux-linaro-mx51/quantal

« back to all changes in this revision

Viewing changes to drivers/staging/iio/gyro/adis16260.h

  • Committer: Package Import Robot
  • Author(s): John Rigby, John Rigby
  • Date: 2011-09-26 10:44:23 UTC
  • Revision ID: package-import@ubuntu.com-20110926104423-3o58a3c1bj7x00rs
Tags: 3.0.0-1007.9
[ John Rigby ]

Enable crypto modules and remove crypto-modules from
exclude-module files
LP: #826021

Show diffs side-by-side

added added

removed removed

Lines of Context:
85
85
/**
86
86
 * struct adis16260_state - device instance specific data
87
87
 * @us:                 actual spi_device
88
 
 * @work_trigger_to_ring: bh for triggered event handling
89
 
 * @inter:              used to check if new interrupt has been triggered
90
 
 * @last_timestamp:     passing timestamp from th to bh of interrupt handler
91
88
 * @indio_dev:          industrial I/O device structure
92
89
 * @trig:               data ready trigger registered with iio
93
90
 * @tx:                 transmit buffer
97
94
 **/
98
95
struct adis16260_state {
99
96
        struct spi_device               *us;
100
 
        struct work_struct              work_trigger_to_ring;
101
 
        s64                             last_timestamp;
102
97
        struct iio_dev                  *indio_dev;
103
98
        struct iio_trigger              *trig;
104
99
        u8                              *tx;
107
102
        unsigned                        negate:1;
108
103
};
109
104
 
110
 
int adis16260_set_irq(struct device *dev, bool enable);
 
105
int adis16260_set_irq(struct iio_dev *indio_dev, bool enable);
111
106
 
112
 
#ifdef CONFIG_IIO_RING_BUFFER
113
107
/* At the moment triggers are only used for ring buffer
114
108
 * filling. This may change!
115
109
 */
120
114
#define ADIS16260_SCAN_TEMP     3
121
115
#define ADIS16260_SCAN_ANGL     4
122
116
 
 
117
#ifdef CONFIG_IIO_RING_BUFFER
123
118
void adis16260_remove_trigger(struct iio_dev *indio_dev);
124
119
int adis16260_probe_trigger(struct iio_dev *indio_dev);
125
120