swh:1:snp:c3bf2749e3476071fa748f67b0ffa2fdc5fe49d9
Raw File
Tip revision: af2d861d4cd2a4da5137f795ee3509e6f944a25b authored by Linus Torvalds on 24 April 2022, 21:51:22 UTC
Linux 5.18-rc4
Tip revision: af2d861
adxl367.h
/* 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_ */
back to top