Currently, we're using the devm version of some but not all functions. Switch to the devm version of iio_triggered_buffer_setup and iio_device_register to simplify the code a bit and decrease the chance of bugs. Signed-off-by: Martin Kelly <martin@martingkelly.com> Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
11 lines
264 B
C
11 lines
264 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
#ifndef BMI160_H_
|
|
#define BMI160_H_
|
|
|
|
extern const struct regmap_config bmi160_regmap_config;
|
|
|
|
int bmi160_core_probe(struct device *dev, struct regmap *regmap,
|
|
const char *name, bool use_spi);
|
|
|
|
#endif /* BMI160_H_ */
|