Link: https://lore.kernel.org/r/20260217200002.683975158@linuxfoundation.org Tested-by: Florian Fainelli <florian.fainelli@broadcom.com> Tested-by: Takeshi Ogasawara <takeshi.ogasawara@futuring-girl.com> Tested-by: Peter Schneider <pschneider1968@googlemail.com> Tested-by: Jon Hunter <jonathanh@nvidia.com> Tested-by: Salvatore Bonaccorso <carnil@debian.org> Tested-by: Brett A C Sheffield <bacs@librecast.net> Tested-by: Mark Brown <broonie@kernel.org> Tested-by: Luna Jernberg <droidbittin@gmail.com> Tested-by: Ronald Warsow <rwarsow@gmx.de> Tested-by: Justin M. Forbes <jforbes@fedoraproject.org> Tested-by: Ron Economos <re@w6rz.net> Tested-by: Miguel Ojeda <ojeda@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
31 lines
813 B
C
31 lines
813 B
C
/* SPDX-License-Identifier: GPL-2.0+ */
|
|
/*
|
|
* ADXL380 3-Axis Digital Accelerometer
|
|
*
|
|
* Copyright 2024 Analog Devices Inc.
|
|
*/
|
|
|
|
#ifndef _ADXL380_H_
|
|
#define _ADXL380_H_
|
|
|
|
struct adxl380_chip_info {
|
|
const char *name;
|
|
const int scale_tbl[3][2];
|
|
const int samp_freq_tbl[3];
|
|
const struct iio_info *info;
|
|
const int temp_offset;
|
|
const u16 chip_id;
|
|
const bool has_low_power;
|
|
};
|
|
|
|
extern const struct adxl380_chip_info adxl318_chip_info;
|
|
extern const struct adxl380_chip_info adxl319_chip_info;
|
|
extern const struct adxl380_chip_info adxl380_chip_info;
|
|
extern const struct adxl380_chip_info adxl382_chip_info;
|
|
|
|
int adxl380_probe(struct device *dev, struct regmap *regmap,
|
|
const struct adxl380_chip_info *chip_info);
|
|
bool adxl380_readable_noinc_reg(struct device *dev, unsigned int reg);
|
|
|
|
#endif /* _ADXL380_H_ */
|