power: remove getFeature functionality
authorStricted <info@stricted.net>
Thu, 6 Sep 2018 23:14:27 +0000 (01:14 +0200)
committerStricted <info@stricted.net>
Sun, 28 Oct 2018 03:49:56 +0000 (04:49 +0100)
Change-Id: I5b98e89e48f942ae0dc96b4b2945284a366023c4

power/power.c

index 887faf6f3b2132c330a95212d78dd505e0de7f10..85aa284dc326b92792417052fc99a5aa88eb046c 100644 (file)
@@ -519,16 +519,6 @@ static void samsung_power_hint(struct power_module *module,
     }
 }
 
-static int samsung_get_feature(struct power_module *module __unused,
-                               feature_t feature)
-{
-    if (feature == POWER_FEATURE_SUPPORTED_PROFILES) {
-        return PROFILE_MAX;
-    }
-
-    return -1;
-}
-
 static void samsung_set_feature(struct power_module *module __unused, feature_t feature, int state __unused)
 {
     switch (feature) {
@@ -562,7 +552,6 @@ struct samsung_power_module HAL_MODULE_INFO_SYM = {
         .init = samsung_power_init,
         .setInteractive = samsung_power_set_interactive,
         .powerHint = samsung_power_hint,
-        .getFeature = samsung_get_feature,
         .setFeature = samsung_set_feature
     },