Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0+ */
0002 /*
0003  * Copyright (C) 2021 Analog Devices, Inc.
0004  * Author: Cosmin Tanislav <cosmin.tanislav@analog.com>
0005  */
0006 
0007 #ifndef _ADXL367_H_
0008 #define _ADXL367_H_
0009 
0010 #include <linux/types.h>
0011 
0012 struct device;
0013 struct regmap;
0014 
0015 struct adxl367_ops {
0016     int (*read_fifo)(void *context, __be16 *fifo_buf,
0017              unsigned int fifo_entries);
0018 };
0019 
0020 int adxl367_probe(struct device *dev, const struct adxl367_ops *ops,
0021           void *context, struct regmap *regmap, int irq);
0022 
0023 #endif /* _ADXL367_H_ */