diff options
author | Denis CIOCCA <denis.ciocca@st.com> | 2014-10-03 11:35:35 -0400 |
---|---|---|
committer | Jonathan Cameron <jic23@kernel.org> | 2014-10-04 06:23:13 -0400 |
commit | a7ee8839daf21c4a3ca439733e7bed25f32e7954 (patch) | |
tree | b46f324ed77940c7a33819a3ac30425580e0d1b0 /include/linux/iio/common | |
parent | c20d4dffd537bee8d3db5ec28ca871ef73d44078 (diff) |
iio:imu: changed structure name from st_sensors to st_sensor_settings
This patch change structure name and related variables names.
Signed-off-by: Denis Ciocca <denis.ciocca@st.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'include/linux/iio/common')
-rw-r--r-- | include/linux/iio/common/st_sensors.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/include/linux/iio/common/st_sensors.h b/include/linux/iio/common/st_sensors.h index d8257ab60bac..2c476acb87d9 100644 --- a/include/linux/iio/common/st_sensors.h +++ b/include/linux/iio/common/st_sensors.h | |||
@@ -164,7 +164,7 @@ struct st_sensor_transfer_function { | |||
164 | }; | 164 | }; |
165 | 165 | ||
166 | /** | 166 | /** |
167 | * struct st_sensors - ST sensors list | 167 | * struct st_sensor_settings - ST specific sensor settings |
168 | * @wai: Contents of WhoAmI register. | 168 | * @wai: Contents of WhoAmI register. |
169 | * @sensors_supported: List of supported sensors by struct itself. | 169 | * @sensors_supported: List of supported sensors by struct itself. |
170 | * @ch: IIO channels for the sensor. | 170 | * @ch: IIO channels for the sensor. |
@@ -177,7 +177,7 @@ struct st_sensor_transfer_function { | |||
177 | * @multi_read_bit: Use or not particular bit for [I2C/SPI] multi-read. | 177 | * @multi_read_bit: Use or not particular bit for [I2C/SPI] multi-read. |
178 | * @bootime: samples to discard when sensor passing from power-down to power-up. | 178 | * @bootime: samples to discard when sensor passing from power-down to power-up. |
179 | */ | 179 | */ |
180 | struct st_sensors { | 180 | struct st_sensor_settings { |
181 | u8 wai; | 181 | u8 wai; |
182 | char sensors_supported[ST_SENSORS_MAX_4WAI][ST_SENSORS_MAX_NAME]; | 182 | char sensors_supported[ST_SENSORS_MAX_4WAI][ST_SENSORS_MAX_NAME]; |
183 | struct iio_chan_spec *ch; | 183 | struct iio_chan_spec *ch; |
@@ -196,7 +196,7 @@ struct st_sensors { | |||
196 | * struct st_sensor_data - ST sensor device status | 196 | * struct st_sensor_data - ST sensor device status |
197 | * @dev: Pointer to instance of struct device (I2C or SPI). | 197 | * @dev: Pointer to instance of struct device (I2C or SPI). |
198 | * @trig: The trigger in use by the core driver. | 198 | * @trig: The trigger in use by the core driver. |
199 | * @sensor: Pointer to the current sensor struct in use. | 199 | * @sensor_settings: Pointer to the specific sensor settings in use. |
200 | * @current_fullscale: Maximum range of measure by the sensor. | 200 | * @current_fullscale: Maximum range of measure by the sensor. |
201 | * @vdd: Pointer to sensor's Vdd power supply | 201 | * @vdd: Pointer to sensor's Vdd power supply |
202 | * @vdd_io: Pointer to sensor's Vdd-IO power supply | 202 | * @vdd_io: Pointer to sensor's Vdd-IO power supply |
@@ -213,7 +213,7 @@ struct st_sensors { | |||
213 | struct st_sensor_data { | 213 | struct st_sensor_data { |
214 | struct device *dev; | 214 | struct device *dev; |
215 | struct iio_trigger *trig; | 215 | struct iio_trigger *trig; |
216 | struct st_sensors *sensor; | 216 | struct st_sensor_settings *sensor_settings; |
217 | struct st_sensor_fullscale_avl *current_fullscale; | 217 | struct st_sensor_fullscale_avl *current_fullscale; |
218 | struct regulator *vdd; | 218 | struct regulator *vdd; |
219 | struct regulator *vdd_io; | 219 | struct regulator *vdd_io; |
@@ -279,7 +279,7 @@ int st_sensors_read_info_raw(struct iio_dev *indio_dev, | |||
279 | struct iio_chan_spec const *ch, int *val); | 279 | struct iio_chan_spec const *ch, int *val); |
280 | 280 | ||
281 | int st_sensors_check_device_support(struct iio_dev *indio_dev, | 281 | int st_sensors_check_device_support(struct iio_dev *indio_dev, |
282 | int num_sensors_list, const struct st_sensors *sensors); | 282 | int num_sensors_list, const struct st_sensor_settings *sensor_settings); |
283 | 283 | ||
284 | ssize_t st_sensors_sysfs_sampling_frequency_avail(struct device *dev, | 284 | ssize_t st_sensors_sysfs_sampling_frequency_avail(struct device *dev, |
285 | struct device_attribute *attr, char *buf); | 285 | struct device_attribute *attr, char *buf); |