cm36651.h 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. /*
  2. * driver/sensor/cm36651.c
  3. * Copyright (c) 2011 SAMSUNG ELECTRONICS
  4. *
  5. * This program is free software; you can redistribute it and/or
  6. * modify it under the terms of the GNU General Public License
  7. * as published by the Free Software Foundation; either version 2
  8. * of the License, or (at your option) any later version.
  9. *
  10. * This program is distributed in the hope that it will be useful,
  11. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. * GNU General Public License for more details.
  14. *
  15. * You should have received a copy of the GNU General Public License
  16. * along with this program; if not, write to the Free Software
  17. * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
  18. * MA 02110-1301, USA.
  19. */
  20. #ifndef __LINUX_CM36651_H
  21. #define __CM36651_H__
  22. struct cm36651_platform_data {
  23. //void (*cm36651_led_on) (int);
  24. //void (*cm36651_power_on) (int);
  25. int irq; /* proximity-sensor irq gpio */
  26. unsigned char threshold;
  27. int p_out; /* proximity-sensor-output gpio (proximity interrupt) */
  28. u32 p_out_flags;
  29. u32 vdd_2p85;
  30. u32 vdd_en;
  31. const char *prox_cal_path;
  32. int d0_value[9];
  33. u8 thresh[2];
  34. };
  35. extern struct class *sensors_class;
  36. #endif