sec_adc.h 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. /*
  2. * sec_adc.h
  3. * Samsung Mobile Charger Header
  4. *
  5. * Copyright (C) 2012 Samsung Electronics, Inc.
  6. *
  7. *
  8. * This software is licensed under the terms of the GNU General Public
  9. * License version 2, as published by the Free Software Foundation, and
  10. * may be copied, distributed, and modified under those terms.
  11. *
  12. * This program is distributed in the hope that it will be useful,
  13. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  15. * GNU General Public License for more details.
  16. *
  17. */
  18. #ifndef __SEC_ADC_H
  19. #define __SEC_ADC_H __FILE__
  20. #include <linux/battery/sec_battery.h>
  21. #include <linux/battery/sec_fuelgauge.h>
  22. #include <linux/battery/sec_charging_common.h>
  23. #if defined (CONFIG_S3C_ADC)
  24. #include <plat/adc.h>
  25. #elif defined (CONFIG_SENSORS_QPNP_ADC_VOLTAGE)
  26. #include <linux/qpnp/pin.h>
  27. #include <linux/qpnp/qpnp-adc.h>
  28. #endif
  29. #define VENDOR_UNKNOWN 0
  30. #define VENDOR_LSI 1
  31. #define VENDOR_QCOM 2
  32. struct sec_adc_info {
  33. struct devcie *dev;
  34. };
  35. #if defined (CONFIG_S3C_ADC)
  36. static struct s3c_adc_client *adc_client;
  37. #endif
  38. #endif /* __SEC_ADC_H */