From 6192115442cac5bf8d8f67bbfa0b9d716b46ff07 Mon Sep 17 00:00:00 2001 From: Nikhil Kumar Kansal Date: Tue, 16 Oct 2018 14:28:43 +0530 Subject: [PATCH] power: qcom: powerHal for sdm455 Power hal changes for sdm455 Change-Id: I14923ff92c27b442a5e2a87978b592d3cd766785 --- power-660.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/power-660.c b/power-660.c index 043e93d..6ffe4a4 100644 --- a/power-660.c +++ b/power-660.c @@ -62,7 +62,8 @@ static int camera_hint_ref_count; static void process_video_encode_hint(void *metadata); //static void process_cam_preview_hint(void *metadata); -static bool is_target_SDM630() /* Returns value=630 if target is SDM630 else value 0 */ +/* Returns true is target is SDM630/SDM455 else false*/ +static bool is_target_SDM630() { int fd; bool is_target_SDM630=false; @@ -74,8 +75,8 @@ static bool is_target_SDM630() /* Returns value=630 if target is SDM630 else val is_target_SDM630 = false; } else { int soc_id = atoi(buf); - if (soc_id == 318 || soc_id== 327) { - is_target_SDM630 = true; /* Above SOCID for SDM630 */ + if (soc_id == 318 || soc_id == 327 || soc_id == 385) { + is_target_SDM630 = true; /* Above SOCID for SDM630/SDM455 */ } } }