diff options
author | Ananth Raghavan Subramanian <sananth@codeaurora.org> | 2018-12-05 12:08:33 -0800 |
---|---|---|
committer | Ananth Raghavan Subramanian <sananth@codeaurora.org> | 2018-12-18 17:04:32 -0800 |
commit | 561cffcbfa66192e839e040d2da3bff2ecf8dcac (patch) | |
tree | 4615a13b2b1220364131a8db4f9efc34d4b51e1a /hint-data.h | |
parent | 6192115442cac5bf8d8f67bbfa0b9d716b46ff07 (diff) | |
download | vendor_qcom_opensource_power-561cffcbfa66192e839e040d2da3bff2ecf8dcac.tar.gz vendor_qcom_opensource_power-561cffcbfa66192e839e040d2da3bff2ecf8dcac.tar.bz2 vendor_qcom_opensource_power-561cffcbfa66192e839e040d2da3bff2ecf8dcac.zip |
Clean up code and add generic hint handling
Removed unused code and added generic hint handling to power.c file,
does not need to be device specific anymore.
Change-Id: I0d4e2a73de0ce4d3735314d2e49ba58c23eb313c
Diffstat (limited to 'hint-data.h')
-rw-r--r-- | hint-data.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/hint-data.h b/hint-data.h index 0cb54c2..48909c7 100644 --- a/hint-data.h +++ b/hint-data.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2012, 2013, 2015, 2017, The Linux Foundation. All rights reserved. + * Copyright (c) 2012, 2013, 2015, 2017-2018, The Linux Foundation. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are @@ -49,8 +49,15 @@ #define LAUNCH_HINT AOSP_DELTA + POWER_HINT_LAUNCH #define DISABLE_TOUCH_HINT AOSP_DELTA + POWER_HINT_DISABLE_TOUCH +//update NUM_HINTS if hints are added to AOSP +#define NUM_HINTS (POWER_HINT_DISABLE_TOUCH +1) + #define VR_MODE_SUSTAINED_PERF_HINT (0x1301) +struct hint_handles{ + int handle; + int ref_count; +}; struct hint_data { unsigned long hint_id; /* This is our key. */ |