diff options
author | Michael Bestas <mkbestas@lineageos.org> | 2019-09-29 23:59:05 +0300 |
---|---|---|
committer | Michael Bestas <mkbestas@lineageos.org> | 2019-10-23 01:12:56 +0300 |
commit | 420f26552469aa8b98692c27de2320a9c1c5dbc2 (patch) | |
tree | 31388c8e259c3d606b033c8ec19d40a1a36fdeca /power-8226.c | |
parent | 434acc2ab4bab9d2407e5167be1dc2c22bfead0f (diff) | |
download | vendor_qcom_opensource_power-420f26552469aa8b98692c27de2320a9c1c5dbc2.tar.gz vendor_qcom_opensource_power-420f26552469aa8b98692c27de2320a9c1c5dbc2.tar.bz2 vendor_qcom_opensource_power-420f26552469aa8b98692c27de2320a9c1c5dbc2.zip |
power: clang-format
* Using AOSP interface .clang-format
* Clean Android.mk while we are at it
Change-Id: I630f72e3dffb676ca1930e72945e897f62103ada
Diffstat (limited to 'power-8226.c')
-rw-r--r-- | power-8226.c | 24 |
1 files changed, 11 insertions, 13 deletions
diff --git a/power-8226.c b/power-8226.c index a5961a2..8c3a445 100644 --- a/power-8226.c +++ b/power-8226.c @@ -28,36 +28,34 @@ */ #define LOG_NIDEBUG 0 +#include <dlfcn.h> #include <errno.h> -#include <string.h> -#include <sys/types.h> -#include <sys/stat.h> #include <fcntl.h> -#include <dlfcn.h> #include <stdlib.h> +#include <string.h> +#include <sys/stat.h> +#include <sys/types.h> #define LOG_TAG "QTI PowerHAL" -#include <log/log.h> #include <hardware/hardware.h> #include <hardware/power.h> +#include <log/log.h> -#include "utils.h" -#include "metadata-defs.h" #include "hint-data.h" +#include "metadata-defs.h" #include "performance.h" #include "power-common.h" +#include "utils.h" static int display_hint_sent; -int power_hint_override(power_hint_t hint, void *data) -{ - switch(hint) { - case POWER_HINT_INTERACTION: - { +int power_hint_override(power_hint_t hint, void* data) { + switch (hint) { + case POWER_HINT_INTERACTION: { int resources[] = {0x702, 0x20B, 0x30B}; int duration = 3000; - interaction(duration, sizeof(resources)/sizeof(resources[0]), resources); + interaction(duration, sizeof(resources) / sizeof(resources[0]), resources); return HINT_HANDLED; } } |