hc
2024-10-12 a5969cabbb4660eab42b6ef0412cbbd1200cf14d
kernel/drivers/i2c/busses/i2c-opal.c
....@@ -1,19 +1,7 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 * IBM OPAL I2C driver
34 * Copyright (C) 2014 IBM
4
- *
5
- * This program is free software; you can redistribute it and/or modify
6
- * it under the terms of the GNU General Public License as published by
7
- * the Free Software Foundation; either version 2 of the License, or
8
- * (at your option) any later version.
9
- *
10
- * This program is distributed in the hope that it will be useful,
11
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
12
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
- * GNU General Public License for more details.
14
- *
15
- * You should have received a copy of the GNU General Public License
16
- * along with this program.
175 */
186
197 #include <linux/device.h>
....@@ -137,7 +125,7 @@
137125 case I2C_SMBUS_BYTE:
138126 req.buffer_ra = cpu_to_be64(__pa(&data->byte));
139127 req.size = cpu_to_be32(1);
140
- /* Fall through */
128
+ fallthrough;
141129 case I2C_SMBUS_QUICK:
142130 req.type = (read_write == I2C_SMBUS_READ) ?
143131 OPAL_I2C_RAW_READ : OPAL_I2C_RAW_WRITE;