mirror of
https://github.com/torvalds/linux.git
synced 2026-04-22 16:53:59 -04:00
Move bma220_set_wdt() into bma220_i2c.c instead of using a conditional based on i2c_verify_client() in bma220_core.c that would make core always depend on the i2c module. Reported-by: kernel test robot <lkp@intel.com> Closes: https://lore.kernel.org/oe-kbuild-all/202510102117.Jqxrw1vF-lkp@intel.com/ Signed-off-by: Petre Rodan <petre.rodan@subdimension.ro> Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
29 lines
687 B
C
29 lines
687 B
C
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
/*
|
|
* Forward declarations needed by the bma220 sources.
|
|
*
|
|
* Copyright 2025 Petre Rodan <petre.rodan@subdimension.ro>
|
|
*/
|
|
|
|
#ifndef _BMA220_H
|
|
#define _BMA220_H
|
|
|
|
#include <linux/pm.h>
|
|
#include <linux/regmap.h>
|
|
|
|
#define BMA220_REG_WDT 0x17
|
|
#define BMA220_WDT_MASK GENMASK(2, 1)
|
|
#define BMA220_WDT_OFF 0x0
|
|
#define BMA220_WDT_1MS 0x2
|
|
#define BMA220_WDT_10MS 0x3
|
|
|
|
struct device;
|
|
|
|
extern const struct regmap_config bma220_i2c_regmap_config;
|
|
extern const struct regmap_config bma220_spi_regmap_config;
|
|
extern const struct dev_pm_ops bma220_pm_ops;
|
|
|
|
int bma220_common_probe(struct device *dev, struct regmap *regmap, int irq);
|
|
|
|
#endif
|