hc
2023-12-06 08f87f769b595151be1afeff53e144f543faa614
kernel/drivers/hwmon/hwmon-vid.c
....@@ -1,3 +1,4 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 * hwmon-vid.c - VID/VRM/VRD voltage conversions
34 *
....@@ -6,20 +7,6 @@
67 * Partly imported from i2c-vid.h of the lm_sensors project
78 * Copyright (c) 2002 Mark D. Studebaker <mdsxyz123@yahoo.com>
89 * With assistance from Trent Piepho <xyzzy@speakeasy.org>
9
- *
10
- * This program is free software; you can redistribute it and/or modify
11
- * it under the terms of the GNU General Public License as published by
12
- * the Free Software Foundation; either version 2 of the License, or
13
- * (at your option) any later version.
14
- *
15
- * This program is distributed in the hope that it will be useful,
16
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
17
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18
- * GNU General Public License for more details.
19
- *
20
- * You should have received a copy of the GNU General Public License
21
- * along with this program; if not, write to the Free Software
22
- * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
2310 */
2411
2512 #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
....@@ -62,15 +49,15 @@
6249 * The 13 specification corresponds to the Intel Pentium M series. There
6350 * doesn't seem to be any named specification for these. The conversion
6451 * tables are detailed directly in the various Pentium M datasheets:
65
- * http://www.intel.com/design/intarch/pentiumm/docs_pentiumm.htm
52
+ * https://www.intel.com/design/intarch/pentiumm/docs_pentiumm.htm
6653 *
6754 * The 14 specification corresponds to Intel Core series. There
6855 * doesn't seem to be any named specification for these. The conversion
6956 * tables are detailed directly in the various Pentium Core datasheets:
70
- * http://www.intel.com/design/mobile/datashts/309221.htm
57
+ * https://www.intel.com/design/mobile/datashts/309221.htm
7158 *
7259 * The 110 (VRM 11) specification corresponds to Intel Conroe based series.
73
- * http://www.intel.com/design/processor/applnots/313214.htm
60
+ * https://www.intel.com/design/processor/applnots/313214.htm
7461 */
7562
7663 /*
....@@ -109,7 +96,7 @@
10996 val &= 0x1f;
11097 if (val == 0x1f)
11198 return 0;
112
- /* fall through */
99
+ fallthrough;
113100 case 25: /* AMD NPT 0Fh */
114101 val &= 0x3f;
115102 return (val < 32) ? 1550 - 25 * val
....@@ -135,7 +122,7 @@
135122
136123 case 84: /* VRM 8.4 */
137124 val &= 0x0f;
138
- /* fall through */
125
+ fallthrough;
139126 case 82: /* VRM 8.2 */
140127 val &= 0x1f;
141128 return val == 0x1f ? 0 :