st_sensors_i2c.h 712 B

12345678910111213141516171819202122232425262728293031
  1. /*
  2. * STMicroelectronics sensors i2c library driver
  3. *
  4. * Copyright 2012-2013 STMicroelectronics Inc.
  5. *
  6. * Denis Ciocca <denis.ciocca@st.com>
  7. *
  8. * Licensed under the GPL-2.
  9. */
  10. #ifndef ST_SENSORS_I2C_H
  11. #define ST_SENSORS_I2C_H
  12. #include <linux/i2c.h>
  13. #include <linux/iio/common/st_sensors.h>
  14. #include <linux/of.h>
  15. void st_sensors_i2c_configure(struct iio_dev *indio_dev,
  16. struct i2c_client *client, struct st_sensor_data *sdata);
  17. #ifdef CONFIG_OF
  18. void st_sensors_of_i2c_probe(struct i2c_client *client,
  19. const struct of_device_id *match);
  20. #else
  21. static inline void st_sensors_of_i2c_probe(struct i2c_client *client,
  22. const struct of_device_id *match)
  23. {
  24. }
  25. #endif
  26. #endif /* ST_SENSORS_I2C_H */