Skip to content

Commit 76159c2

Browse files
committed
Merge branch 'hwmon-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jdelvare/staging
Pull a howmon update from Jean Delvare. * 'hwmon-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jdelvare/staging: hwmon: struct x86_cpu_id arrays can be __initconst
2 parents 219c673 + e273bd9 commit 76159c2

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

‎drivers/hwmon/coretemp.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -793,7 +793,7 @@ static struct notifier_block coretemp_cpu_notifier __refdata = {
793793
.notifier_call = coretemp_cpu_callback,
794794
};
795795

796-
static const struct x86_cpu_id coretemp_ids[] = {
796+
static const struct x86_cpu_id __initconst coretemp_ids[] = {
797797
{ X86_VENDOR_INTEL, X86_FAMILY_ANY, X86_MODEL_ANY, X86_FEATURE_DTHERM },
798798
{}
799799
};

‎drivers/hwmon/via-cputemp.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ static struct notifier_block via_cputemp_cpu_notifier __refdata = {
309309
.notifier_call = via_cputemp_cpu_callback,
310310
};
311311

312-
static const struct x86_cpu_id cputemp_ids[] = {
312+
static const struct x86_cpu_id __initconst cputemp_ids[] = {
313313
{ X86_VENDOR_CENTAUR, 6, 0xa, }, /* C7 A */
314314
{ X86_VENDOR_CENTAUR, 6, 0xd, }, /* C7 D */
315315
{ X86_VENDOR_CENTAUR, 6, 0xf, }, /* Nano */

0 commit comments

Comments
 (0)