diff options
author | Christian Weisgerber <naddy@cvs.openbsd.org> | 2022-04-16 19:32:23 +0000 |
---|---|---|
committer | Christian Weisgerber <naddy@cvs.openbsd.org> | 2022-04-16 19:32:23 +0000 |
commit | 55d37eb9bcf2a02995fd71102158f22065572a5f (patch) | |
tree | b9770b10bcd2160f184803605f87b2e866ea528f /sys/dev/isa | |
parent | 3f2252f686cee65bad13410024ec6cbfcc38be19 (diff) |
it(4): constify sensor tables
Diffstat (limited to 'sys/dev/isa')
-rw-r--r-- | sys/dev/isa/it.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/dev/isa/it.c b/sys/dev/isa/it.c index 9cdce94a36e..3b38433a694 100644 --- a/sys/dev/isa/it.c +++ b/sys/dev/isa/it.c @@ -1,4 +1,4 @@ -/* $OpenBSD: it.c,v 1.47 2022/04/06 18:59:28 naddy Exp $ */ +/* $OpenBSD: it.c,v 1.48 2022/04/16 19:32:22 naddy Exp $ */ /* * Copyright (c) 2007-2008 Oleg Safiullin <form@pdp-11.org.ru> @@ -70,7 +70,7 @@ int it_wdog_cb(void *, int); #define RFACT(x, y) (RFACT_NONE * ((x) + (y)) / (y)) -struct { +const struct { enum sensor_type type; const char *desc; } it_sensors[IT_EC_NUMSENSORS] = { @@ -102,7 +102,7 @@ struct { }; /* rfact values for voltage sensors */ -int it_vrfact[IT_VOLT_COUNT] = { +const int it_vrfact[IT_VOLT_COUNT] = { RFACT_NONE, /* VCORE_A */ RFACT_NONE, /* VCORE_A */ RFACT_NONE, /* +3.3V */ @@ -114,12 +114,12 @@ int it_vrfact[IT_VOLT_COUNT] = { RFACT_NONE /* VBAT */ }; -int it_fan_regs[] = { +const int it_fan_regs[] = { IT_EC_FAN_TAC1, IT_EC_FAN_TAC2, IT_EC_FAN_TAC3, IT_EC_FAN_TAC4_LSB, IT_EC_FAN_TAC5_LSB }; -int it_fan_ext_regs[] = { +const int it_fan_ext_regs[] = { IT_EC_FAN_EXT_TAC1, IT_EC_FAN_EXT_TAC2, IT_EC_FAN_EXT_TAC3, IT_EC_FAN_TAC4_MSB, IT_EC_FAN_TAC5_MSB }; |