.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
---|
1 | 2 | /* |
---|
2 | 3 | * hwmon-vid.c - VID/VRM/VRD voltage conversions |
---|
3 | 4 | * |
---|
.. | .. |
---|
6 | 7 | * Partly imported from i2c-vid.h of the lm_sensors project |
---|
7 | 8 | * Copyright (c) 2002 Mark D. Studebaker <mdsxyz123@yahoo.com> |
---|
8 | 9 | * 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. |
---|
23 | 10 | */ |
---|
24 | 11 | |
---|
25 | 12 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt |
---|
.. | .. |
---|
62 | 49 | * The 13 specification corresponds to the Intel Pentium M series. There |
---|
63 | 50 | * doesn't seem to be any named specification for these. The conversion |
---|
64 | 51 | * 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 |
---|
66 | 53 | * |
---|
67 | 54 | * The 14 specification corresponds to Intel Core series. There |
---|
68 | 55 | * doesn't seem to be any named specification for these. The conversion |
---|
69 | 56 | * 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 |
---|
71 | 58 | * |
---|
72 | 59 | * 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 |
---|
74 | 61 | */ |
---|
75 | 62 | |
---|
76 | 63 | /* |
---|
.. | .. |
---|
109 | 96 | val &= 0x1f; |
---|
110 | 97 | if (val == 0x1f) |
---|
111 | 98 | return 0; |
---|
112 | | - /* fall through */ |
---|
| 99 | + fallthrough; |
---|
113 | 100 | case 25: /* AMD NPT 0Fh */ |
---|
114 | 101 | val &= 0x3f; |
---|
115 | 102 | return (val < 32) ? 1550 - 25 * val |
---|
.. | .. |
---|
135 | 122 | |
---|
136 | 123 | case 84: /* VRM 8.4 */ |
---|
137 | 124 | val &= 0x0f; |
---|
138 | | - /* fall through */ |
---|
| 125 | + fallthrough; |
---|
139 | 126 | case 82: /* VRM 8.2 */ |
---|
140 | 127 | val &= 0x1f; |
---|
141 | 128 | return val == 0x1f ? 0 : |
---|