mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-02 00:24:12 +08:00
6b658c31bb
At this point all ST driver remove functions do iio_device_unregister(). This change removes them from them and replaces all iio_device_register() with devm_iio_device_register(). This can be done in a single change relatively easy, since all these remove functions are define in st_sensors.h. Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com> Signed-off-by: Alexandru Ardelean <aardelean@deviqon.com> Reviewed-by: Linus Walleij <linus.walleij@linaro.org> Link: https://lore.kernel.org/r/20210823112204.243255-5-aardelean@deviqon.com Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
23 lines
436 B
C
23 lines
436 B
C
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
// STMicroelectronics LSM9DS0 IMU driver
|
|
|
|
#ifndef ST_LSM9DS0_H
|
|
#define ST_LSM9DS0_H
|
|
|
|
struct iio_dev;
|
|
struct regulator;
|
|
|
|
struct st_lsm9ds0 {
|
|
struct device *dev;
|
|
const char *name;
|
|
int irq;
|
|
struct iio_dev *accel;
|
|
struct iio_dev *magn;
|
|
struct regulator *vdd;
|
|
struct regulator *vdd_io;
|
|
};
|
|
|
|
int st_lsm9ds0_probe(struct st_lsm9ds0 *lsm9ds0, struct regmap *regmap);
|
|
|
|
#endif /* ST_LSM9DS0_H */
|