vibrator: Drop kernel header dependency
* This is a partial revert of 5fba81168e8446448da68a5e546c2aa77b8dd148. * CAF adds the kernel headers dep to fetch one single value that is removed in that commit. Easier to just carry it here, especially considering most devices won't have this in generated_kernel_headers, even. Change-Id: I5b7daab2731e4b6b529cdb1ccf0fe173f677f8fd
This commit is contained in:
committed by
Bruno Martins
parent
fdfa73426a
commit
f3fdce9afd
@@ -59,7 +59,6 @@ cc_library_shared {
|
||||
"android.hardware.vibrator-V1-ndk_platform",
|
||||
],
|
||||
export_include_dirs: ["include"],
|
||||
header_libs: ["qti_kernel_headers"],
|
||||
}
|
||||
|
||||
cc_binary {
|
||||
|
||||
@@ -34,7 +34,6 @@
|
||||
#include <string.h>
|
||||
#include <thread>
|
||||
#include <linux/input.h>
|
||||
#include <linux/slatecom_interface.h>
|
||||
#include <log/log.h>
|
||||
#include <fcntl.h>
|
||||
#include <cutils/log.h>
|
||||
@@ -53,6 +52,12 @@ namespace vibrator {
|
||||
#define UEVENT_MSG_LEN 1024
|
||||
#define SLATE_EVENT "SLATE_EVENT="
|
||||
#define SLATE_EVENT_STRING_LEN 12 //length of SLATE_EVENT
|
||||
/*
|
||||
* TODO Need to work on solution to get this from kernel header
|
||||
* without effecting other kernel versions where this change
|
||||
* goes in.
|
||||
*/
|
||||
#define SLATE_AFTER_POWER_UP 4
|
||||
|
||||
PatternOffload::PatternOffload()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user