File Index
Files and directories
Sign in
FILE

bma220.h

File preview with syntax highlighting.

linux-6.19.14/drivers/iio/accel/bma220.h C
 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
 8#ifndef _BMA220_H
 9#define _BMA220_H
10
11#include <linux/pm.h>
12#include <linux/regmap.h>
13
14#define BMA220_REG_WDT				0x17
15#define BMA220_WDT_MASK				GENMASK(2, 1)
16#define BMA220_WDT_OFF				0x0
17#define BMA220_WDT_1MS				0x2
18#define BMA220_WDT_10MS				0x3
19
20struct device;
21
22extern const struct regmap_config bma220_i2c_regmap_config;
23extern const struct regmap_config bma220_spi_regmap_config;
24extern const struct dev_pm_ops bma220_pm_ops;
25
26int bma220_common_probe(struct device *dev, struct regmap *regmap, int irq);
27
28#endif
~/ Read-only file preview.