hwmon: sbrmi: constify pointers to hwmon_channel_info
Statically allocated array of pointed to hwmon_channel_info can be made const for safety. Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Signed-off-by: Guenter Roeck <linux@roeck-us.net>
This commit is contained in:
parent
70df9a5543
commit
29423978b7
@ -265,7 +265,7 @@ static umode_t sbrmi_is_visible(const void *data,
|
||||
return 0;
|
||||
}
|
||||
|
||||
static const struct hwmon_channel_info *sbrmi_info[] = {
|
||||
static const struct hwmon_channel_info * const sbrmi_info[] = {
|
||||
HWMON_CHANNEL_INFO(power,
|
||||
HWMON_P_INPUT | HWMON_P_CAP | HWMON_P_CAP_MAX),
|
||||
NULL
|
||||
|
Loading…
x
Reference in New Issue
Block a user