summaryrefslogtreecommitdiffstats
path: root/drivers/iio/accel/adxl367.h
blob: 4a42622149b1bf751dab547546f5e6ef7a26f87e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/* SPDX-License-Identifier: GPL-2.0+ */
/*
 * Copyright (C) 2021 Analog Devices, Inc.
 * Author: Cosmin Tanislav <cosmin.tanislav@analog.com>
 */

#ifndef _ADXL367_H_
#define _ADXL367_H_

#include <linux/types.h>

struct device;
struct regmap;

struct adxl367_ops {
	int (*read_fifo)(void *context, __be16 *fifo_buf,
			 unsigned int fifo_entries);
};

int adxl367_probe(struct device *dev, const struct adxl367_ops *ops,
		  void *context, struct regmap *regmap, int irq);

#endif /* _ADXL367_H_ */