Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions drivers/platform/x86/msi-wmi-platform.c
Original file line number Diff line number Diff line change
Expand Up @@ -675,12 +675,12 @@ static int msi_wmi_platform_write(struct device *dev, enum hwmon_sensor_types ty
u8 buffer[32] = { };
int ret;

guard(mutex)(&data->wmi_lock);

switch (type) {
case hwmon_pwm:
switch (attr) {
case hwmon_pwm_enable:
guard(mutex)(&data->wmi_lock);

buffer[0] = MSI_PLATFORM_AP_SUBFEATURE_FAN_MODE;
ret = msi_wmi_platform_query_unlocked(
data, MSI_PLATFORM_GET_AP, buffer,
Expand Down