hc
2024-02-20 102a0743326a03cd1a1202ceda21e175b7d3575c
kernel/drivers/spi/spi-sc18is602.c
....@@ -1,17 +1,8 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 * NXP SC18IS602/603 SPI driver
34 *
45 * Copyright (C) Guenter Roeck <linux@roeck-us.net>
5
- *
6
- * This program is free software; you can redistribute it and/or modify
7
- * it under the terms of the GNU General Public License as published by
8
- * the Free Software Foundation; either version 2 of the License, or
9
- * (at your option) any later version.
10
- *
11
- * This program is distributed in the hope that it will be useful,
12
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
- * GNU General Public License for more details.
156 */
167
178 #include <linux/kernel.h>
....@@ -220,8 +211,7 @@
220211 }
221212 status = 0;
222213
223
- if (t->delay_usecs)
224
- udelay(t->delay_usecs);
214
+ spi_transfer_delay_exec(t);
225215 }
226216 m->status = status;
227217 spi_finalize_current_message(master);
....@@ -346,6 +336,6 @@
346336
347337 module_i2c_driver(sc18is602_driver);
348338
349
-MODULE_DESCRIPTION("SC18IC602/603 SPI Master Driver");
339
+MODULE_DESCRIPTION("SC18IS602/603 SPI Master Driver");
350340 MODULE_AUTHOR("Guenter Roeck");
351341 MODULE_LICENSE("GPL");