PageRenderTime 58ms CodeModel.GetById 35ms RepoModel.GetById 0ms app.codeStats 0ms

/drivers/staging/iio/addac/adt7316.h

https://bitbucket.org/wisechild/galaxy-nexus
C++ Header | 33 lines | 20 code | 6 blank | 7 comment | 0 complexity | 21e029544220f41a9221e9d46ece4349 MD5 | raw file
Possible License(s): GPL-2.0, LGPL-2.0, AGPL-1.0
  1. /*
  2. * ADT7316 digital temperature sensor driver supporting ADT7316/7/8 ADT7516/7/9
  3. *
  4. * Copyright 2010 Analog Devices Inc.
  5. *
  6. * Licensed under the GPL-2 or later.
  7. */
  8. #ifndef _ADT7316_H_
  9. #define _ADT7316_H_
  10. #include <linux/types.h>
  11. #define ADT7316_REG_MAX_ADDR 0x3F
  12. struct adt7316_bus {
  13. void *client;
  14. int irq;
  15. int irq_flags;
  16. int (*read) (void *client, u8 reg, u8 *data);
  17. int (*write) (void *client, u8 reg, u8 val);
  18. int (*multi_read) (void *client, u8 first_reg, u8 count, u8 *data);
  19. int (*multi_write) (void *client, u8 first_reg, u8 count, u8 *data);
  20. };
  21. #ifdef CONFIG_PM
  22. int adt7316_disable(struct device *dev);
  23. int adt7316_enable(struct device *dev);
  24. #endif
  25. int adt7316_probe(struct device *dev, struct adt7316_bus *bus, const char *name);
  26. int adt7316_remove(struct device *dev);
  27. #endif