hc
2024-01-03 2f7c68cb55ecb7331f2381deb497c27155f32faf
kernel/drivers/platform/x86/msi-laptop.c
....@@ -210,7 +210,7 @@
210210 return -EINVAL;
211211
212212 if (quirks->ec_read_only)
213
- return -EOPNOTSUPP;
213
+ return 0;
214214
215215 /* read current device state */
216216 result = ec_read(MSI_STANDARD_EC_COMMAND_ADDRESS, &rdata);
....@@ -841,15 +841,15 @@
841841 static void msi_init_rfkill(struct work_struct *ignored)
842842 {
843843 if (rfk_wlan) {
844
- rfkill_set_sw_state(rfk_wlan, !wlan_s);
844
+ msi_rfkill_set_state(rfk_wlan, !wlan_s);
845845 rfkill_wlan_set(NULL, !wlan_s);
846846 }
847847 if (rfk_bluetooth) {
848
- rfkill_set_sw_state(rfk_bluetooth, !bluetooth_s);
848
+ msi_rfkill_set_state(rfk_bluetooth, !bluetooth_s);
849849 rfkill_bluetooth_set(NULL, !bluetooth_s);
850850 }
851851 if (rfk_threeg) {
852
- rfkill_set_sw_state(rfk_threeg, !threeg_s);
852
+ msi_rfkill_set_state(rfk_threeg, !threeg_s);
853853 rfkill_threeg_set(NULL, !threeg_s);
854854 }
855855 }