if (value < 0 || value > 100)
return -EINVAL;
- ret = asus_wmi_set_devstate(ASUS_WMI_CHARGE_THRESHOLD, value, &rv);
+ ret = asus_wmi_set_devstate(ASUS_WMI_DEVID_RSOC, value, &rv);
if (ret)
return ret;
else if (attr == &dev_attr_fan_boost_mode.attr)
ok = asus->fan_boost_mode_available;
else if (attr == &dev_attr_charge_threshold.attr)
- devid = ASUS_WMI_CHARGE_THRESHOLD;
+ devid = ASUS_WMI_DEVID_RSOC;
if (devid != -1)
ok = !(asus_wmi_get_devstate_simple(asus, devid) < 0);
* and we can't get the current threshold so let set it to 100% on
* module load.
*/
- asus_wmi_set_devstate(ASUS_WMI_CHARGE_THRESHOLD, 100, NULL);
+ asus_wmi_set_devstate(ASUS_WMI_DEVID_RSOC, 100, NULL);
asus->charge_threshold = 100;
return 0;
#define ASUS_WMI_DEVID_LID_RESUME 0x00120031
/* Maximum charging percentage */
-#define ASUS_WMI_CHARGE_THRESHOLD 0x00120057
+#define ASUS_WMI_DEVID_RSOC 0x00120057
/* DSTS masks */
#define ASUS_WMI_DSTS_STATUS_BIT 0x00000001