x86/mm/pat: Don't report PAT on CPUs that don't support it
[linux/fpc-iii.git] / drivers / iio / pressure / st_pressure.h
blob7d995937adbab2483612b5a8ead2df8e1bde00c1
1 /*
2 * STMicroelectronics pressures driver
4 * Copyright 2013 STMicroelectronics Inc.
6 * Denis Ciocca <denis.ciocca@st.com>
7 * v. 1.0.0
8 * Licensed under the GPL-2.
9 */
11 #ifndef ST_PRESS_H
12 #define ST_PRESS_H
14 #include <linux/types.h>
15 #include <linux/iio/common/st_sensors.h>
17 enum st_press_type {
18 LPS001WP,
19 LPS25H,
20 LPS331AP,
21 LPS22HB,
22 ST_PRESS_MAX,
25 #define LPS001WP_PRESS_DEV_NAME "lps001wp"
26 #define LPS25H_PRESS_DEV_NAME "lps25h"
27 #define LPS331AP_PRESS_DEV_NAME "lps331ap"
28 #define LPS22HB_PRESS_DEV_NAME "lps22hb"
30 /**
31 * struct st_sensors_platform_data - default press platform data
32 * @drdy_int_pin: default press DRDY is available on INT1 pin.
34 static const struct st_sensors_platform_data default_press_pdata = {
35 .drdy_int_pin = 1,
38 int st_press_common_probe(struct iio_dev *indio_dev);
39 void st_press_common_remove(struct iio_dev *indio_dev);
41 #ifdef CONFIG_IIO_BUFFER
42 int st_press_allocate_ring(struct iio_dev *indio_dev);
43 void st_press_deallocate_ring(struct iio_dev *indio_dev);
44 int st_press_trig_set_state(struct iio_trigger *trig, bool state);
45 #define ST_PRESS_TRIGGER_SET_STATE (&st_press_trig_set_state)
46 #else /* CONFIG_IIO_BUFFER */
47 static inline int st_press_allocate_ring(struct iio_dev *indio_dev)
49 return 0;
52 static inline void st_press_deallocate_ring(struct iio_dev *indio_dev)
55 #define ST_PRESS_TRIGGER_SET_STATE NULL
56 #endif /* CONFIG_IIO_BUFFER */
58 #endif /* ST_PRESS_H */