hc
2023-12-11 d2ccde1c8e90d38cee87a1b0309ad2827f3fd30d
kernel/drivers/edac/i7300_edac.c
....@@ -1,13 +1,11 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * Intel 7300 class Memory Controllers kernel module (Clarksboro)
3
- *
4
- * This file may be distributed under the terms of the
5
- * GNU General Public License version 2 only.
64 *
75 * Copyright (c) 2010 by:
86 * Mauro Carvalho Chehab
97 *
10
- * Red Hat Inc. http://www.redhat.com
8
+ * Red Hat Inc. https://www.redhat.com
119 *
1210 * Intel 7300 Chipset Memory Controller Hub (MCH) - Datasheet
1311 * http://www.intel.com/Assets/PDF/datasheet/318082.pdf
....@@ -582,7 +580,7 @@
582580 * @ch: Channel number within the branch (0 or 1)
583581 * @branch: Branch number (0 or 1)
584582 * @dinfo: Pointer to DIMM info where dimm size is stored
585
- * @p_csrow: Pointer to the struct csrow_info that corresponds to that element
583
+ * @dimm: Pointer to the struct dimm_info that corresponds to that element
586584 */
587585 static int decode_mtr(struct i7300_pvt *pvt,
588586 int slot, int ch, int branch,
....@@ -796,8 +794,7 @@
796794 for (ch = 0; ch < max_channel; ch++) {
797795 int channel = to_channel(ch, branch);
798796
799
- dimm = EDAC_DIMM_PTR(mci->layers, mci->dimms,
800
- mci->n_layers, branch, ch, slot);
797
+ dimm = edac_get_dimm(mci, branch, ch, slot);
801798
802799 dinfo = &pvt->dimm_info[slot][channel];
803800
....@@ -819,7 +816,7 @@
819816
820817 /**
821818 * decode_mir() - Decodes Memory Interleave Register (MIR) info
822
- * @int mir_no: number of the MIR register to decode
819
+ * @mir_no: number of the MIR register to decode
823820 * @mir: array with the MIR data cached on the driver
824821 */
825822 static void decode_mir(int mir_no, u16 mir[MAX_MIR])
....@@ -1209,7 +1206,7 @@
12091206
12101207 MODULE_LICENSE("GPL");
12111208 MODULE_AUTHOR("Mauro Carvalho Chehab");
1212
-MODULE_AUTHOR("Red Hat Inc. (http://www.redhat.com)");
1209
+MODULE_AUTHOR("Red Hat Inc. (https://www.redhat.com)");
12131210 MODULE_DESCRIPTION("MC Driver for Intel I7300 memory controllers - "
12141211 I7300_REVISION);
12151212