.. | .. |
---|
| 1 | +/* SPDX-License-Identifier: GPL-2.0-or-later */ |
---|
1 | 2 | /* |
---|
2 | 3 | * Copyright (C) 2014, Samsung Electronics Co. Ltd. All Rights Reserved. |
---|
3 | | - * |
---|
4 | | - * This program is free software; you can redistribute it and/or modify |
---|
5 | | - * it under the terms of the GNU General Public License as published by |
---|
6 | | - * the Free Software Foundation; either version 2 of the License, or |
---|
7 | | - * (at your option) any later version. |
---|
8 | | - * |
---|
9 | | - * This program is distributed in the hope that it will be useful, |
---|
10 | | - * but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
11 | | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
---|
12 | | - * GNU General Public License for more details. |
---|
13 | | - * |
---|
14 | 4 | */ |
---|
15 | 5 | |
---|
16 | 6 | #ifndef __SSP_SENSORHUB_H__ |
---|
17 | 7 | #define __SSP_SENSORHUB_H__ |
---|
18 | 8 | |
---|
19 | 9 | #include <linux/delay.h> |
---|
20 | | -#include <linux/gpio.h> |
---|
| 10 | +#include <linux/gpio/consumer.h> |
---|
21 | 11 | #include <linux/iio/common/ssp_sensors.h> |
---|
22 | 12 | #include <linux/iio/iio.h> |
---|
23 | 13 | #include <linux/spi/spi.h> |
---|
.. | .. |
---|
178 | 168 | * @fw_dl_state: firmware download state |
---|
179 | 169 | * @comm_lock: lock protecting the handshake |
---|
180 | 170 | * @pending_lock: lock protecting pending list and completion |
---|
181 | | - * @mcu_reset_gpio: mcu reset line |
---|
182 | | - * @ap_mcu_gpio: ap to mcu gpio line |
---|
183 | | - * @mcu_ap_gpio: mcu to ap gpio line |
---|
| 171 | + * @mcu_reset_gpiod: mcu reset line |
---|
| 172 | + * @ap_mcu_gpiod: ap to mcu gpio line |
---|
| 173 | + * @mcu_ap_gpiod: mcu to ap gpio line |
---|
184 | 174 | * @pending_list: pending list for messages queued to be sent/read |
---|
185 | 175 | * @sensor_devs: registered IIO devices table |
---|
186 | 176 | * @enable_refcount: enable reference count for wdt (watchdog timer) |
---|
.. | .. |
---|
222 | 212 | struct mutex comm_lock; |
---|
223 | 213 | struct mutex pending_lock; |
---|
224 | 214 | |
---|
225 | | - int mcu_reset_gpio; |
---|
226 | | - int ap_mcu_gpio; |
---|
227 | | - int mcu_ap_gpio; |
---|
| 215 | + struct gpio_desc *mcu_reset_gpiod; |
---|
| 216 | + struct gpio_desc *ap_mcu_gpiod; |
---|
| 217 | + struct gpio_desc *mcu_ap_gpiod; |
---|
228 | 218 | |
---|
229 | 219 | struct list_head pending_list; |
---|
230 | 220 | |
---|