| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * 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. |
|---|
| 6 | 4 | * |
|---|
| 7 | 5 | * Copyright (c) 2010 by: |
|---|
| 8 | 6 | * Mauro Carvalho Chehab |
|---|
| 9 | 7 | * |
|---|
| 10 | | - * Red Hat Inc. http://www.redhat.com |
|---|
| 8 | + * Red Hat Inc. https://www.redhat.com |
|---|
| 11 | 9 | * |
|---|
| 12 | 10 | * Intel 7300 Chipset Memory Controller Hub (MCH) - Datasheet |
|---|
| 13 | 11 | * http://www.intel.com/Assets/PDF/datasheet/318082.pdf |
|---|
| .. | .. |
|---|
| 582 | 580 | * @ch: Channel number within the branch (0 or 1) |
|---|
| 583 | 581 | * @branch: Branch number (0 or 1) |
|---|
| 584 | 582 | * @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 |
|---|
| 586 | 584 | */ |
|---|
| 587 | 585 | static int decode_mtr(struct i7300_pvt *pvt, |
|---|
| 588 | 586 | int slot, int ch, int branch, |
|---|
| .. | .. |
|---|
| 796 | 794 | for (ch = 0; ch < max_channel; ch++) { |
|---|
| 797 | 795 | int channel = to_channel(ch, branch); |
|---|
| 798 | 796 | |
|---|
| 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); |
|---|
| 801 | 798 | |
|---|
| 802 | 799 | dinfo = &pvt->dimm_info[slot][channel]; |
|---|
| 803 | 800 | |
|---|
| .. | .. |
|---|
| 819 | 816 | |
|---|
| 820 | 817 | /** |
|---|
| 821 | 818 | * 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 |
|---|
| 823 | 820 | * @mir: array with the MIR data cached on the driver |
|---|
| 824 | 821 | */ |
|---|
| 825 | 822 | static void decode_mir(int mir_no, u16 mir[MAX_MIR]) |
|---|
| .. | .. |
|---|
| 1209 | 1206 | |
|---|
| 1210 | 1207 | MODULE_LICENSE("GPL"); |
|---|
| 1211 | 1208 | 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)"); |
|---|
| 1213 | 1210 | MODULE_DESCRIPTION("MC Driver for Intel I7300 memory controllers - " |
|---|
| 1214 | 1211 | I7300_REVISION); |
|---|
| 1215 | 1212 | |
|---|