diff options
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/iio/adc/ad_sigma_delta.h | 3 | ||||
| -rw-r--r-- | include/linux/iio/common/st_sensors.h | 2 | ||||
| -rw-r--r-- | include/linux/platform_data/st_sensors_pdata.h | 2 |
3 files changed, 6 insertions, 1 deletions
diff --git a/include/linux/iio/adc/ad_sigma_delta.h b/include/linux/iio/adc/ad_sigma_delta.h index 730ead1a46df..7e84351fa2c0 100644 --- a/include/linux/iio/adc/ad_sigma_delta.h +++ b/include/linux/iio/adc/ad_sigma_delta.h | |||
| @@ -39,6 +39,8 @@ struct iio_dev; | |||
| 39 | * if there is just one read-only sample data shift register. | 39 | * if there is just one read-only sample data shift register. |
| 40 | * @addr_shift: Shift of the register address in the communications register. | 40 | * @addr_shift: Shift of the register address in the communications register. |
| 41 | * @read_mask: Mask for the communications register having the read bit set. | 41 | * @read_mask: Mask for the communications register having the read bit set. |
| 42 | * @data_reg: Address of the data register, if 0 the default address of 0x3 will | ||
| 43 | * be used. | ||
| 42 | */ | 44 | */ |
| 43 | struct ad_sigma_delta_info { | 45 | struct ad_sigma_delta_info { |
| 44 | int (*set_channel)(struct ad_sigma_delta *, unsigned int channel); | 46 | int (*set_channel)(struct ad_sigma_delta *, unsigned int channel); |
| @@ -47,6 +49,7 @@ struct ad_sigma_delta_info { | |||
| 47 | bool has_registers; | 49 | bool has_registers; |
| 48 | unsigned int addr_shift; | 50 | unsigned int addr_shift; |
| 49 | unsigned int read_mask; | 51 | unsigned int read_mask; |
| 52 | unsigned int data_reg; | ||
| 50 | }; | 53 | }; |
| 51 | 54 | ||
| 52 | /** | 55 | /** |
diff --git a/include/linux/iio/common/st_sensors.h b/include/linux/iio/common/st_sensors.h index f9bd6e8ab138..8092b8e7f37e 100644 --- a/include/linux/iio/common/st_sensors.h +++ b/include/linux/iio/common/st_sensors.h | |||
| @@ -40,7 +40,7 @@ | |||
| 40 | #define ST_SENSORS_DEFAULT_STAT_ADDR 0x27 | 40 | #define ST_SENSORS_DEFAULT_STAT_ADDR 0x27 |
| 41 | 41 | ||
| 42 | #define ST_SENSORS_MAX_NAME 17 | 42 | #define ST_SENSORS_MAX_NAME 17 |
| 43 | #define ST_SENSORS_MAX_4WAI 7 | 43 | #define ST_SENSORS_MAX_4WAI 8 |
| 44 | 44 | ||
| 45 | #define ST_SENSORS_LSM_CHANNELS(device_type, mask, index, mod, \ | 45 | #define ST_SENSORS_LSM_CHANNELS(device_type, mask, index, mod, \ |
| 46 | ch2, s, endian, rbits, sbits, addr) \ | 46 | ch2, s, endian, rbits, sbits, addr) \ |
diff --git a/include/linux/platform_data/st_sensors_pdata.h b/include/linux/platform_data/st_sensors_pdata.h index f8274b0c6888..728193111c2f 100644 --- a/include/linux/platform_data/st_sensors_pdata.h +++ b/include/linux/platform_data/st_sensors_pdata.h | |||
| @@ -18,11 +18,13 @@ | |||
| 18 | * Accelerometer DRDY on LSM330 available only on pin 1 (see datasheet). | 18 | * Accelerometer DRDY on LSM330 available only on pin 1 (see datasheet). |
| 19 | * @open_drain: set the interrupt line to be open drain if possible. | 19 | * @open_drain: set the interrupt line to be open drain if possible. |
| 20 | * @spi_3wire: enable spi-3wire mode. | 20 | * @spi_3wire: enable spi-3wire mode. |
| 21 | * @pullups: enable/disable i2c controller pullup resistors. | ||
| 21 | */ | 22 | */ |
| 22 | struct st_sensors_platform_data { | 23 | struct st_sensors_platform_data { |
| 23 | u8 drdy_int_pin; | 24 | u8 drdy_int_pin; |
| 24 | bool open_drain; | 25 | bool open_drain; |
| 25 | bool spi_3wire; | 26 | bool spi_3wire; |
| 27 | bool pullups; | ||
| 26 | }; | 28 | }; |
| 27 | 29 | ||
| 28 | #endif /* ST_SENSORS_PDATA_H */ | 30 | #endif /* ST_SENSORS_PDATA_H */ |
