diff options
author | Krzysztof Kozlowski <[email protected]> | 2023-05-11 19:56:27 +0200 |
---|---|---|
committer | Hans de Goede <[email protected]> | 2023-05-16 10:36:56 +0200 |
commit | f5a08ed51ed780a312fa07daaf1edb92b78e06f8 (patch) | |
tree | 68c1ec2124cb86cd41056ec4d6cd1a52fc31c3d5 | |
parent | ddd4e9d78057383704a84cbe462bb63598c9baef (diff) |
platform/x86: toshiba: constify pointers to hwmon_channel_info
Statically allocated array of pointers to hwmon_channel_info can be made
const for safety.
Signed-off-by: Krzysztof Kozlowski <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Reviewed-by: Hans de Goede <[email protected]>
Signed-off-by: Hans de Goede <[email protected]>
-rw-r--r-- | drivers/platform/x86/toshiba_acpi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/platform/x86/toshiba_acpi.c b/drivers/platform/x86/toshiba_acpi.c index b34984bbee33..291f14ef6702 100644 --- a/drivers/platform/x86/toshiba_acpi.c +++ b/drivers/platform/x86/toshiba_acpi.c @@ -3037,7 +3037,7 @@ static int toshiba_acpi_hwmon_read(struct device *dev, enum hwmon_sensor_types t return -EOPNOTSUPP; } -static const struct hwmon_channel_info *toshiba_acpi_hwmon_info[] = { +static const struct hwmon_channel_info * const toshiba_acpi_hwmon_info[] = { HWMON_CHANNEL_INFO(fan, HWMON_F_INPUT), NULL }; |