mpl115.h 487 B

123456789101112131415161718192021
  1. /* SPDX-License-Identifier: GPL-2.0-only */
  2. /*
  3. * Freescale MPL115A pressure/temperature sensor
  4. *
  5. * Copyright (c) 2014 Peter Meerwald <[email protected]>
  6. * Copyright (c) 2016 Akinobu Mita <[email protected]>
  7. */
  8. #ifndef _MPL115_H_
  9. #define _MPL115_H_
  10. struct mpl115_ops {
  11. int (*init)(struct device *);
  12. int (*read)(struct device *, u8);
  13. int (*write)(struct device *, u8, u8);
  14. };
  15. int mpl115_probe(struct device *dev, const char *name,
  16. const struct mpl115_ops *ops);
  17. #endif