Fix feature check

This commit is contained in:
Christoffer Sandberg 2022-11-21 17:47:28 +01:00
parent 362e16e703
commit bb4885cb57
No known key found for this signature in database
GPG key ID: BF563F71B6C7A96D

View file

@ -1147,7 +1147,7 @@ static int uniwill_keyboard_probe(struct platform_device *dev)
if (uw_feats->uniwill_has_charging_prio)
uw_charging_prio_loaded = sysfs_create_group(&dev->dev.kobj, &uw_charging_prio_attr_group) == 0;
if (uw_feats->uniwill_has_charging_prio)
if (uw_feats->uniwill_has_charging_profile)
uw_charging_profile_loaded = sysfs_create_group(&dev->dev.kobj, &uw_charging_profile_attr_group) == 0;
return 0;