gp2ap002a00f.h 632 B

12345678910111213141516171819202122
  1. #ifndef _GP2AP002A00F_H_
  2. #define _GP2AP002A00F_H_
  3. #include <linux/i2c.h>
  4. #define GP2A_I2C_NAME "gp2ap002a00f"
  5. /**
  6. * struct gp2a_platform_data - Sharp gp2ap002a00f proximity platform data
  7. * @vout_gpio: The gpio connected to the object detected pin (VOUT)
  8. * @wakeup: Set to true if the proximity can wake the device from suspend
  9. * @hw_setup: Callback for setting up hardware such as gpios and vregs
  10. * @hw_shutdown: Callback for properly shutting down hardware
  11. */
  12. struct gp2a_platform_data {
  13. int vout_gpio;
  14. bool wakeup;
  15. int (*hw_setup)(struct i2c_client *client);
  16. int (*hw_shutdown)(struct i2c_client *client);
  17. };
  18. #endif