st_pressure.h (f01387d2693813eb5271a3448e6a082322c7d75d) st_pressure.h (0baa3fc1b6c1e928260ca099cbdf551ced2cbfa3)
1/*
2 * STMicroelectronics pressures driver
3 *
4 * Copyright 2013 STMicroelectronics Inc.
5 *
6 * Denis Ciocca <denis.ciocca@st.com>
7 * v. 1.0.0
8 * Licensed under the GPL-2.

--- 12 unchanged lines hidden (view full) ---

21/**
22 * struct st_sensors_platform_data - default press platform data
23 * @drdy_int_pin: default press DRDY is available on INT1 pin.
24 */
25static const struct st_sensors_platform_data default_press_pdata = {
26 .drdy_int_pin = 1,
27};
28
1/*
2 * STMicroelectronics pressures driver
3 *
4 * Copyright 2013 STMicroelectronics Inc.
5 *
6 * Denis Ciocca <denis.ciocca@st.com>
7 * v. 1.0.0
8 * Licensed under the GPL-2.

--- 12 unchanged lines hidden (view full) ---

21/**
22 * struct st_sensors_platform_data - default press platform data
23 * @drdy_int_pin: default press DRDY is available on INT1 pin.
24 */
25static const struct st_sensors_platform_data default_press_pdata = {
26 .drdy_int_pin = 1,
27};
28
29int st_press_common_probe(struct iio_dev *indio_dev,
30 struct st_sensors_platform_data *pdata);
29int st_press_common_probe(struct iio_dev *indio_dev);
31void st_press_common_remove(struct iio_dev *indio_dev);
32
33#ifdef CONFIG_IIO_BUFFER
34int st_press_allocate_ring(struct iio_dev *indio_dev);
35void st_press_deallocate_ring(struct iio_dev *indio_dev);
36int st_press_trig_set_state(struct iio_trigger *trig, bool state);
37#define ST_PRESS_TRIGGER_SET_STATE (&st_press_trig_set_state)
38#else /* CONFIG_IIO_BUFFER */

--- 12 unchanged lines hidden ---
30void st_press_common_remove(struct iio_dev *indio_dev);
31
32#ifdef CONFIG_IIO_BUFFER
33int st_press_allocate_ring(struct iio_dev *indio_dev);
34void st_press_deallocate_ring(struct iio_dev *indio_dev);
35int st_press_trig_set_state(struct iio_trigger *trig, bool state);
36#define ST_PRESS_TRIGGER_SET_STATE (&st_press_trig_set_state)
37#else /* CONFIG_IIO_BUFFER */

--- 12 unchanged lines hidden ---