bma220.h 687 B

12345678910111213141516171819202122232425262728
  1. /* SPDX-License-Identifier: GPL-2.0-only */
  2. /*
  3. * Forward declarations needed by the bma220 sources.
  4. *
  5. * Copyright 2025 Petre Rodan <petre.rodan@subdimension.ro>
  6. */
  7. #ifndef _BMA220_H
  8. #define _BMA220_H
  9. #include <linux/pm.h>
  10. #include <linux/regmap.h>
  11. #define BMA220_REG_WDT 0x17
  12. #define BMA220_WDT_MASK GENMASK(2, 1)
  13. #define BMA220_WDT_OFF 0x0
  14. #define BMA220_WDT_1MS 0x2
  15. #define BMA220_WDT_10MS 0x3
  16. struct device;
  17. extern const struct regmap_config bma220_i2c_regmap_config;
  18. extern const struct regmap_config bma220_spi_regmap_config;
  19. extern const struct dev_pm_ops bma220_pm_ops;
  20. int bma220_common_probe(struct device *dev, struct regmap *regmap, int irq);
  21. #endif