hc
2024-10-12 a5969cabbb4660eab42b6ef0412cbbd1200cf14d
kernel/drivers/i2c/busses/i2c-amd8111.c
....@@ -1,11 +1,8 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * SMBus 2.0 driver for AMD-8111 IO-Hub.
34 *
45 * Copyright (c) 2002 Vojtech Pavlik
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 version 2.
96 */
107
118 #include <linux/module.h>
....@@ -384,7 +381,7 @@
384381 if (status)
385382 return status;
386383 len = min_t(u8, len, I2C_SMBUS_BLOCK_MAX);
387
- /* fall through */
384
+ fallthrough;
388385 case I2C_SMBUS_I2C_BLOCK_DATA:
389386 for (i = 0; i < len; i++) {
390387 status = amd_ec_read(smbus, AMD_SMB_DATA + i,