mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-05 16:54:27 +00:00

Prevent triggers from stop working after the device has entered sleep: use iio_device_suspend_triggering and iio_device_resume_triggering helpers. Closes: https://lore.kernel.org/all/31d7f7aa-e834-4fd0-a66a-e0ff528425dc@gmail.com Signed-off-by: Denis Benato <benato.denis96@gmail.com> Tested-by: Justin Weiss <justin@justinweiss.com> Link: https://patch.msgid.link/20250525142530.71955-2-benato.denis96@gmail.com Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
25 lines
614 B
C
25 lines
614 B
C
/* SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) */
|
|
|
|
#ifndef BMI270_H_
|
|
#define BMI270_H_
|
|
|
|
#include <linux/regmap.h>
|
|
#include <linux/iio/iio.h>
|
|
|
|
struct bmi270_chip_info {
|
|
const char *name;
|
|
int chip_id;
|
|
const char *fw_name;
|
|
};
|
|
|
|
extern const struct regmap_config bmi270_regmap_config;
|
|
extern const struct bmi270_chip_info bmi260_chip_info;
|
|
extern const struct bmi270_chip_info bmi270_chip_info;
|
|
|
|
struct device;
|
|
int bmi270_core_probe(struct device *dev, struct regmap *regmap,
|
|
const struct bmi270_chip_info *chip_info);
|
|
|
|
extern const struct dev_pm_ops bmi270_core_pm_ops;
|
|
|
|
#endif /* BMI270_H_ */
|