From d66fc2cdb471bdd02b2b3541f9eddff1b7d59928 Mon Sep 17 00:00:00 2001 From: Prashant Kumar Date: Fri, 20 Sep 2019 09:47:40 +0530 Subject: [PATCH] Reversing the Added API to read the device SOC ID Change-Id: I96bd498fdd9509a1d52063ec26732a99365415d5 CRs-Fixed: 2531660 --- utils/loc_target.cpp | 21 --------------------- utils/loc_target.h | 1 - 2 files changed, 22 deletions(-) diff --git a/utils/loc_target.cpp b/utils/loc_target.cpp index a286fe1f..f6fd728a 100644 --- a/utils/loc_target.cpp +++ b/utils/loc_target.cpp @@ -208,24 +208,3 @@ detected: LOC_LOGW("HAL: %s returned %d", __FUNCTION__, gTarget); return gTarget; } - -int loc_read_device_soc_id() -{ - char buf[10] = {0}; - int soc_id = 0; - int fd = open("/sys/devices/soc0/soc_id", O_RDONLY); - if (fd >= 0) - { - if (read(fd, buf, sizeof(buf) - 1) == -1) - { - LOC_LOGI ("%s: unable to read soc_id", __FUNCTION__); - } - else - { - soc_id = atoi(buf); - LOC_LOGI ("%s: Soc ID :%d", __FUNCTION__, soc_id); - } - close(fd); - } - return soc_id; -} diff --git a/utils/loc_target.h b/utils/loc_target.h index 6abee89b..172b4752 100644 --- a/utils/loc_target.h +++ b/utils/loc_target.h @@ -54,7 +54,6 @@ void loc_get_platform_name(char *platform_name, int array_length); /*The character array passed to this function should have length of atleast PROPERTY_VALUE_MAX*/ void loc_get_auto_platform_name(char *platform_name, int array_length); -int loc_read_device_soc_id(); /* Please remember to update 'target_name' in loc_log.cpp, if do any changes to this enum. */