Commit 00f5117c authored by Colin Ian King's avatar Colin Ian King Committed by Guenter Roeck

hwmon: (nzxt-smart2) make array detect_fans_report static const

Don't populate the read-only array detect_fans_report on the stack but
instead it static const. Also makes the object code a little smaller.
Signed-off-by: default avatarColin Ian King <colin.i.king@gmail.com>
Link: https://lore.kernel.org/r/20220109194558.45811-1-colin.i.king@gmail.comSigned-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
parent 660d1878
......@@ -583,7 +583,7 @@ static int set_update_interval(struct drvdata *drvdata, long val)
static int init_device(struct drvdata *drvdata, long update_interval)
{
int ret;
u8 detect_fans_report[] = {
static const u8 detect_fans_report[] = {
OUTPUT_REPORT_ID_INIT_COMMAND,
INIT_COMMAND_DETECT_FANS,
};
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment