power: Clean up and fix set_interactive_override

* Remove debug logs and useless comments
* Consistent return values
* Check if set_interactive_override handled hints and print
  info message if it didn't

Change-Id: Iff9f7327ba71c282e34ff3143c45a3f40f72fc92
This commit is contained in:
Michael Bestas
2019-10-06 01:34:17 +03:00
parent 1c4f9ef732
commit 2ab4d32f3d
10 changed files with 39 additions and 148 deletions

View File

@@ -198,7 +198,3 @@ int power_hint_override(power_hint_t hint, void* data) {
}
return ret_val;
}
int set_interactive_override(int on) {
return HINT_HANDLED; /* Don't excecute this code path, not in use */
}