Skip to content

Commit 912d614

Browse files
Wer-Wolfij-intel
authored andcommitted
platform/x86: msi-wmi-platform: Rename "data" variable
Rename the "data" variable inside msi_wmi_platform_read() to avoid a name collision when the driver adds support for a state container struct (that is to be called "data" too) in the future. Signed-off-by: Armin Wolf <[email protected]> Link: https://lore.kernel.org/r/[email protected] Reviewed-by: Ilpo Järvinen <[email protected]> Signed-off-by: Ilpo Järvinen <[email protected]>
1 parent 202a861 commit 912d614

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

drivers/platform/x86/msi-wmi-platform.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -173,19 +173,19 @@ static int msi_wmi_platform_read(struct device *dev, enum hwmon_sensor_types typ
173173
struct wmi_device *wdev = dev_get_drvdata(dev);
174174
u8 input[32] = { 0 };
175175
u8 output[32];
176-
u16 data;
176+
u16 value;
177177
int ret;
178178

179179
ret = msi_wmi_platform_query(wdev, MSI_PLATFORM_GET_FAN, input, sizeof(input), output,
180180
sizeof(output));
181181
if (ret < 0)
182182
return ret;
183183

184-
data = get_unaligned_be16(&output[channel * 2 + 1]);
185-
if (!data)
184+
value = get_unaligned_be16(&output[channel * 2 + 1]);
185+
if (!value)
186186
*val = 0;
187187
else
188-
*val = 480000 / data;
188+
*val = 480000 / value;
189189

190190
return 0;
191191
}

0 commit comments

Comments
 (0)