mirror of
https://github.com/torvalds/linux.git
synced 2024-11-17 01:22:07 +00:00
a3e0b51884
Add basic support for NXP FXLS8962AF/FXLS8964AF Automotive accelerometers. It will allow setting up scale/gain and reading x,y,z axis. Datasheet: https://www.nxp.com/docs/en/data-sheet/FXLS8962AF.pdf Datasheet: https://www.nxp.com/docs/en/data-sheet/FXLS8964AF.pdf Signed-off-by: Sean Nyekjaer <sean@geanix.com> Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com> Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
23 lines
466 B
C
23 lines
466 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
/*
|
|
* Copyright 2021 Connected Cars A/S
|
|
*/
|
|
#ifndef _FXLS8962AF_H_
|
|
#define _FXLS8962AF_H_
|
|
|
|
struct regmap;
|
|
struct device;
|
|
|
|
enum {
|
|
fxls8962af,
|
|
fxls8964af,
|
|
};
|
|
|
|
int fxls8962af_core_probe(struct device *dev, struct regmap *regmap, int irq);
|
|
int fxls8962af_core_remove(struct device *dev);
|
|
|
|
extern const struct dev_pm_ops fxls8962af_pm_ops;
|
|
extern const struct regmap_config fxls8962af_regmap_conf;
|
|
|
|
#endif /* _FXLS8962AF_H_ */
|