mpl115.h 630 B

12345678910111213141516171819202122232425
  1. /*
  2. * Freescale MPL115A pressure/temperature sensor
  3. *
  4. * Copyright (c) 2014 Peter Meerwald <pmeerw@pmeerw.net>
  5. * Copyright (c) 2016 Akinobu Mita <akinobu.mita@gmail.com>
  6. *
  7. * This file is subject to the terms and conditions of version 2 of
  8. * the GNU General Public License. See the file COPYING in the main
  9. * directory of this archive for more details.
  10. */
  11. #ifndef _MPL115_H_
  12. #define _MPL115_H_
  13. struct mpl115_ops {
  14. int (*init)(struct device *);
  15. int (*read)(struct device *, u8);
  16. int (*write)(struct device *, u8, u8);
  17. };
  18. int mpl115_probe(struct device *dev, const char *name,
  19. const struct mpl115_ops *ops);
  20. #endif