hc
2023-12-11 d2ccde1c8e90d38cee87a1b0309ad2827f3fd30d
kernel/drivers/media/spi/gs1662.c
....@@ -1,13 +1,9 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 * GS1662 device registration.
34 *
45 * Copyright (C) 2015-2016 Nexvision
56 * Author: Charles-Antoine Couret <charles-antoine.couret@nexvision.fr>
6
- *
7
- * This program is free software; you can redistribute it and/or modify it
8
- * under the terms of the GNU General Public License as published by the
9
- * Free Software Foundation; either version 2 of the License, or (at your
10
- * option) any later version.
117 */
128
139 #include <linux/kernel.h>
....@@ -151,11 +147,17 @@
151147 {
152148 .tx_buf = &buf_addr,
153149 .len = 2,
154
- .delay_usecs = 1,
150
+ .delay = {
151
+ .value = 1,
152
+ .unit = SPI_DELAY_UNIT_USECS
153
+ },
155154 }, {
156155 .rx_buf = &buf_value,
157156 .len = 2,
158
- .delay_usecs = 1,
157
+ .delay = {
158
+ .value = 1,
159
+ .unit = SPI_DELAY_UNIT_USECS
160
+ },
159161 },
160162 };
161163
....@@ -179,11 +181,17 @@
179181 {
180182 .tx_buf = &buf_addr,
181183 .len = 2,
182
- .delay_usecs = 1,
184
+ .delay = {
185
+ .value = 1,
186
+ .unit = SPI_DELAY_UNIT_USECS
187
+ },
183188 }, {
184189 .tx_buf = &buf_value,
185190 .len = 2,
186
- .delay_usecs = 1,
191
+ .delay = {
192
+ .value = 1,
193
+ .unit = SPI_DELAY_UNIT_USECS
194
+ },
187195 },
188196 };
189197