David Brazdil | 0f672f6 | 2019-12-10 10:32:29 +0000 | [diff] [blame^] | 1 | /* SPDX-License-Identifier: GPL-2.0-or-later */ |
Andrew Scull | b4b6d4a | 2019-01-02 15:54:55 +0000 | [diff] [blame] | 2 | /* |
| 3 | * S5K4ECGX image sensor header file |
| 4 | * |
| 5 | * Copyright (C) 2012, Linaro |
| 6 | * Copyright (C) 2012, Samsung Electronics Co., Ltd. |
Andrew Scull | b4b6d4a | 2019-01-02 15:54:55 +0000 | [diff] [blame] | 7 | */ |
| 8 | |
| 9 | #ifndef S5K4ECGX_H |
| 10 | #define S5K4ECGX_H |
| 11 | |
| 12 | /** |
| 13 | * struct s5k4ecgx_gpio - data structure describing a GPIO |
| 14 | * @gpio : GPIO number |
| 15 | * @level: indicates active state of the @gpio |
| 16 | */ |
| 17 | struct s5k4ecgx_gpio { |
| 18 | int gpio; |
| 19 | int level; |
| 20 | }; |
| 21 | |
| 22 | /** |
| 23 | * struct ss5k4ecgx_platform_data- s5k4ecgx driver platform data |
| 24 | * @gpio_reset: GPIO driving RESET pin |
| 25 | * @gpio_stby : GPIO driving STBY pin |
| 26 | */ |
| 27 | |
| 28 | struct s5k4ecgx_platform_data { |
| 29 | struct s5k4ecgx_gpio gpio_reset; |
| 30 | struct s5k4ecgx_gpio gpio_stby; |
| 31 | }; |
| 32 | |
| 33 | #endif /* S5K4ECGX_H */ |