~ubuntu-branches/ubuntu/precise/linux-ti-omap4/precise

« back to all changes in this revision

Viewing changes to drivers/staging/iio/adc/ad7476.h

  • Committer: Bazaar Package Importer
  • Author(s): Paolo Pisati
  • Date: 2011-06-29 15:23:51 UTC
  • mfrom: (26.1.1 natty-proposed)
  • Revision ID: james.westby@ubuntu.com-20110629152351-xs96tm303d95rpbk
Tags: 3.0.0-1200.2
* Rebased against 3.0.0-6.7
* BSP from TI based on 3.0.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
19
19
};
20
20
 
21
21
struct ad7476_chip_info {
22
 
        u8                              bits;
23
 
        u8                              storagebits;
24
 
        u8                              res_shift;
25
 
        char                            sign;
26
22
        u16                             int_vref_mv;
 
23
        struct iio_chan_spec            channel[2];
27
24
};
28
25
 
29
26
struct ad7476_state {
31
28
        struct spi_device               *spi;
32
29
        const struct ad7476_chip_info   *chip_info;
33
30
        struct regulator                *reg;
34
 
        struct work_struct              poll_work;
35
 
        atomic_t                        protect_ring;
 
31
        size_t                          d_size;
36
32
        u16                             int_vref_mv;
37
33
        struct spi_transfer             xfer;
38
34
        struct spi_message              msg;