xref: /linux/drivers/iio/accel/adxl367.h (revision 4f2c0a4acffbec01079c28f839422e64ddeff004)
1*cbab791cSCosmin Tanislav /* SPDX-License-Identifier: GPL-2.0+ */
2*cbab791cSCosmin Tanislav /*
3*cbab791cSCosmin Tanislav  * Copyright (C) 2021 Analog Devices, Inc.
4*cbab791cSCosmin Tanislav  * Author: Cosmin Tanislav <cosmin.tanislav@analog.com>
5*cbab791cSCosmin Tanislav  */
6*cbab791cSCosmin Tanislav 
7*cbab791cSCosmin Tanislav #ifndef _ADXL367_H_
8*cbab791cSCosmin Tanislav #define _ADXL367_H_
9*cbab791cSCosmin Tanislav 
10*cbab791cSCosmin Tanislav #include <linux/types.h>
11*cbab791cSCosmin Tanislav 
12*cbab791cSCosmin Tanislav struct device;
13*cbab791cSCosmin Tanislav struct regmap;
14*cbab791cSCosmin Tanislav 
15*cbab791cSCosmin Tanislav struct adxl367_ops {
16*cbab791cSCosmin Tanislav 	int (*read_fifo)(void *context, __be16 *fifo_buf,
17*cbab791cSCosmin Tanislav 			 unsigned int fifo_entries);
18*cbab791cSCosmin Tanislav };
19*cbab791cSCosmin Tanislav 
20*cbab791cSCosmin Tanislav int adxl367_probe(struct device *dev, const struct adxl367_ops *ops,
21*cbab791cSCosmin Tanislav 		  void *context, struct regmap *regmap, int irq);
22*cbab791cSCosmin Tanislav 
23*cbab791cSCosmin Tanislav #endif /* _ADXL367_H_ */
24