.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
---|
1 | 2 | /* |
---|
2 | 3 | * GS1662 device registration. |
---|
3 | 4 | * |
---|
4 | 5 | * Copyright (C) 2015-2016 Nexvision |
---|
5 | 6 | * 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. |
---|
11 | 7 | */ |
---|
12 | 8 | |
---|
13 | 9 | #include <linux/kernel.h> |
---|
.. | .. |
---|
151 | 147 | { |
---|
152 | 148 | .tx_buf = &buf_addr, |
---|
153 | 149 | .len = 2, |
---|
154 | | - .delay_usecs = 1, |
---|
| 150 | + .delay = { |
---|
| 151 | + .value = 1, |
---|
| 152 | + .unit = SPI_DELAY_UNIT_USECS |
---|
| 153 | + }, |
---|
155 | 154 | }, { |
---|
156 | 155 | .rx_buf = &buf_value, |
---|
157 | 156 | .len = 2, |
---|
158 | | - .delay_usecs = 1, |
---|
| 157 | + .delay = { |
---|
| 158 | + .value = 1, |
---|
| 159 | + .unit = SPI_DELAY_UNIT_USECS |
---|
| 160 | + }, |
---|
159 | 161 | }, |
---|
160 | 162 | }; |
---|
161 | 163 | |
---|
.. | .. |
---|
179 | 181 | { |
---|
180 | 182 | .tx_buf = &buf_addr, |
---|
181 | 183 | .len = 2, |
---|
182 | | - .delay_usecs = 1, |
---|
| 184 | + .delay = { |
---|
| 185 | + .value = 1, |
---|
| 186 | + .unit = SPI_DELAY_UNIT_USECS |
---|
| 187 | + }, |
---|
183 | 188 | }, { |
---|
184 | 189 | .tx_buf = &buf_value, |
---|
185 | 190 | .len = 2, |
---|
186 | | - .delay_usecs = 1, |
---|
| 191 | + .delay = { |
---|
| 192 | + .value = 1, |
---|
| 193 | + .unit = SPI_DELAY_UNIT_USECS |
---|
| 194 | + }, |
---|
187 | 195 | }, |
---|
188 | 196 | }; |
---|
189 | 197 | |
---|