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

« back to all changes in this revision

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

  • Committer: Package Import Robot
  • Author(s): Paolo Pisati, Paolo Pisati
  • Date: 2011-12-06 15:56:07 UTC
  • Revision ID: package-import@ubuntu.com-20111206155607-pcf44kv5fmhk564f
Tags: 3.2.0-1401.1
[ Paolo Pisati ]

* Rebased on top of Ubuntu-3.2.0-3.8
* Tilt-tracking @ ef2487af4bb15bdd0689631774b5a5e3a59f74e2
* Delete debian.ti-omap4/control, it shoudln't be tracked
* Fix architecture spelling (s/armel/armhf/)
* [Config] Update configs following 3.2 import
* [Config] Fix compilation: disable CODA and ARCH_OMAP3
* [Config] Fix compilation: disable Ethernet Faraday
* Update series to precise

Show diffs side-by-side

added added

removed removed

Lines of Context:
57
57
#define MAX1363_SCAN_MASK                       0x60
58
58
#define MAX1363_SE_DE_MASK                      0x01
59
59
 
 
60
#define MAX1363_MAX_CHANNELS 25
60
61
/**
61
62
 * struct max1363_mode - scan mode information
62
63
 * @conf:       The corresponding value of the configuration register
64
65
 */
65
66
struct max1363_mode {
66
67
        int8_t          conf;
67
 
        long            modemask;
 
68
        DECLARE_BITMAP(modemask, MAX1363_MAX_CHANNELS);
68
69
};
69
70
 
70
71
/* This must be maintained along side the max1363_mode_table in max1363_core */
145
146
};
146
147
 
147
148
const struct max1363_mode
148
 
*max1363_match_mode(u32 mask, const struct max1363_chip_info *ci);
 
149
*max1363_match_mode(unsigned long *mask, const struct max1363_chip_info *ci);
149
150
 
150
151
int max1363_set_scan_mode(struct max1363_state *st);
151
152
 
152
153
#ifdef CONFIG_MAX1363_RING_BUFFER
153
154
 
154
 
int max1363_single_channel_from_ring(long mask, struct max1363_state *st);
 
155
int max1363_single_channel_from_ring(const long *mask,
 
156
                                     struct max1363_state *st);
155
157
int max1363_register_ring_funcs_and_init(struct iio_dev *indio_dev);
156
158
void max1363_ring_cleanup(struct iio_dev *indio_dev);
157
159