Skip to content

Commit 3c48eb3

Browse files
MisterZ42groeck
authored andcommitted
hwmon: (corsair-cpro) Replace magic values with constants
Replace two magic values in ccp_device with existing constants. Signed-off-by: Marius Zachmann <mail@mariuszachmann.de> Link: https://lore.kernel.org/r/20251113100024.11103-3-mail@mariuszachmann.de [groeck: Updated subject to include subsystem/driver] Signed-off-by: Guenter Roeck <linux@roeck-us.net>
1 parent 6ae5101 commit 3c48eb3

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

drivers/hwmon/corsair-cpro.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,10 +90,10 @@ struct ccp_device {
9090
u8 *cmd_buffer;
9191
u8 *buffer;
9292
int buffer_recv_size; /* number of received bytes in buffer */
93-
int target[6];
93+
int target[NUM_FANS];
9494
DECLARE_BITMAP(temp_cnct, NUM_TEMP_SENSORS);
9595
DECLARE_BITMAP(fan_cnct, NUM_FANS);
96-
char fan_label[6][LABEL_LENGTH];
96+
char fan_label[NUM_FANS][LABEL_LENGTH];
9797
u8 firmware_ver[3];
9898
u8 bootloader_ver[2];
9999
};

0 commit comments

Comments
 (0)