s5k4ecgx.h 892 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. /*
  2. * S5K4ECGX image sensor header file
  3. *
  4. * Copyright (C) 2012, Linaro
  5. * Copyright (C) 2012, Samsung Electronics Co., Ltd.
  6. *
  7. * This program is free software; you can redistribute it and/or modify
  8. * it under the terms of the GNU General Public License as published by
  9. * the Free Software Foundation; either version 2 of the License, or
  10. * (at your option) any later version.
  11. */
  12. #ifndef S5K4ECGX_H
  13. #define S5K4ECGX_H
  14. /**
  15. * struct s5k4ecgx_gpio - data structure describing a GPIO
  16. * @gpio : GPIO number
  17. * @level: indicates active state of the @gpio
  18. */
  19. struct s5k4ecgx_gpio {
  20. int gpio;
  21. int level;
  22. };
  23. /**
  24. * struct ss5k4ecgx_platform_data- s5k4ecgx driver platform data
  25. * @gpio_reset: GPIO driving RESET pin
  26. * @gpio_stby : GPIO driving STBY pin
  27. */
  28. struct s5k4ecgx_platform_data {
  29. struct s5k4ecgx_gpio gpio_reset;
  30. struct s5k4ecgx_gpio gpio_stby;
  31. };
  32. #endif /* S5K4ECGX_H */