adxl367.h 500 B

1234567891011121314151617181920212223
  1. /* SPDX-License-Identifier: GPL-2.0+ */
  2. /*
  3. * Copyright (C) 2021 Analog Devices, Inc.
  4. * Author: Cosmin Tanislav <[email protected]>
  5. */
  6. #ifndef _ADXL367_H_
  7. #define _ADXL367_H_
  8. #include <linux/types.h>
  9. struct device;
  10. struct regmap;
  11. struct adxl367_ops {
  12. int (*read_fifo)(void *context, __be16 *fifo_buf,
  13. unsigned int fifo_entries);
  14. };
  15. int adxl367_probe(struct device *dev, const struct adxl367_ops *ops,
  16. void *context, struct regmap *regmap, int irq);
  17. #endif /* _ADXL367_H_ */