From: Stricted Date: Thu, 6 Sep 2018 23:14:27 +0000 (+0200) Subject: power: remove getFeature functionality X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=03d721268044190467c618e14086fc3b6a870d97;p=GitHub%2FLineageOS%2Fandroid_hardware_samsung.git power: remove getFeature functionality Change-Id: I5b98e89e48f942ae0dc96b4b2945284a366023c4 --- diff --git a/power/power.c b/power/power.c index 887faf6..85aa284 100644 --- a/power/power.c +++ b/power/power.c @@ -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 },