stk6d2x_sec.h 787 B

1234567891011121314151617181920212223242526272829303132333435
  1. /*
  2. *
  3. * $Id: stk6d2x_sec.h
  4. *
  5. * Copyright (C) 2012~2018 Bk, sensortek Inc.
  6. *
  7. * This file is subject to the terms and conditions of the GNU General Public
  8. * License. See the file COPYING in the main directory of this archive for
  9. * more details.
  10. *
  11. */
  12. #ifndef __STK6D2X_SEC_H__
  13. #define __STK6D2X_SEC_H__
  14. #include <stk6d2x.h>
  15. #include <common_define.h>
  16. #include <linux/version.h>
  17. // #define SUPPORT_SENSOR_CLASS
  18. typedef struct stk6d2x_wrapper
  19. {
  20. struct i2c_manager i2c_mgr;
  21. stk6d2x_data alps_data;
  22. struct device *dev;
  23. struct device *sensor_dev;
  24. #ifdef SUPPORT_SENSOR_CLASS
  25. struct sensors_classdev als_cdev;
  26. #endif
  27. struct input_dev *als_input_dev;
  28. atomic_t recv_reg;
  29. } stk6d2x_wrapper;
  30. #endif // __STK6D2X_SEC_H__