| .. | .. |
|---|
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * STMicroelectronics accelerometers driver |
|---|
| 3 | 4 | * |
|---|
| .. | .. |
|---|
| 5 | 6 | * |
|---|
| 6 | 7 | * Denis Ciocca <denis.ciocca@st.com> |
|---|
| 7 | 8 | * v. 1.0.0 |
|---|
| 8 | | - * Licensed under the GPL-2. |
|---|
| 9 | 9 | */ |
|---|
| 10 | 10 | |
|---|
| 11 | 11 | #ifndef ST_ACCEL_H |
|---|
| .. | .. |
|---|
| 34 | 34 | LIS3LV02DL, |
|---|
| 35 | 35 | LIS2DW12, |
|---|
| 36 | 36 | LIS3DHH, |
|---|
| 37 | + LIS2DE12, |
|---|
| 38 | + LIS2HH12, |
|---|
| 37 | 39 | ST_ACCEL_MAX, |
|---|
| 38 | 40 | }; |
|---|
| 39 | 41 | |
|---|
| .. | .. |
|---|
| 56 | 58 | #define LNG2DM_ACCEL_DEV_NAME "lng2dm" |
|---|
| 57 | 59 | #define LIS2DW12_ACCEL_DEV_NAME "lis2dw12" |
|---|
| 58 | 60 | #define LIS3DHH_ACCEL_DEV_NAME "lis3dhh" |
|---|
| 61 | +#define LIS3DE_ACCEL_DEV_NAME "lis3de" |
|---|
| 62 | +#define LIS2DE12_ACCEL_DEV_NAME "lis2de12" |
|---|
| 63 | +#define LIS2HH12_ACCEL_DEV_NAME "lis2hh12" |
|---|
| 59 | 64 | |
|---|
| 60 | 65 | /** |
|---|
| 61 | 66 | * struct st_sensors_platform_data - default accel platform data |
|---|
| 62 | 67 | * @drdy_int_pin: default accel DRDY is available on INT1 pin. |
|---|
| 63 | 68 | */ |
|---|
| 64 | | -static const struct st_sensors_platform_data default_accel_pdata = { |
|---|
| 69 | +static __maybe_unused const struct st_sensors_platform_data default_accel_pdata = { |
|---|
| 65 | 70 | .drdy_int_pin = 1, |
|---|
| 66 | 71 | }; |
|---|
| 67 | 72 | |
|---|
| 73 | +const struct st_sensor_settings *st_accel_get_settings(const char *name); |
|---|
| 68 | 74 | int st_accel_common_probe(struct iio_dev *indio_dev); |
|---|
| 69 | 75 | void st_accel_common_remove(struct iio_dev *indio_dev); |
|---|
| 70 | 76 | |
|---|