From bb4885cb571efcce4cdf2d0eb342c84415a3aee4 Mon Sep 17 00:00:00 2001 From: Christoffer Sandberg Date: Mon, 21 Nov 2022 17:47:28 +0100 Subject: [PATCH] Fix feature check --- src/uniwill_keyboard.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/uniwill_keyboard.h b/src/uniwill_keyboard.h index 2296c1e..9729a3b 100644 --- a/src/uniwill_keyboard.h +++ b/src/uniwill_keyboard.h @@ -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;