qcom: pd-mapper: Use /vendor/firmware path for AOSP
cherry-picked from upstream device/linaro/dragonboard project.
Signed-off-by: Amit Pundir <amit.pundir@linaro.org>
Change-Id: I44f1d53cb16bc91e05be530c55e15a2657660be6
diff --git a/qcom/pd-mapper/pd-mapper.c b/qcom/pd-mapper/pd-mapper.c
index c7db57f..664b77d 100644
--- a/qcom/pd-mapper/pd-mapper.c
+++ b/qcom/pd-mapper/pd-mapper.c
@@ -192,7 +192,11 @@
return 0;
}
+#ifndef ANDROID
#define FIRMWARE_BASE "/lib/firmware/"
+#else
+#define FIRMWARE_BASE "/vendor/firmware/"
+#endif
static int pd_enumerate_jsons(struct assoc *json_set)
{