From 290208e447200cca7d63ca9318b82003e704b30d Mon Sep 17 00:00:00 2001 From: devenrao Date: Fri, 9 Feb 2024 11:55:17 +0530 Subject: [PATCH] allow other applications to use ody ocmb check method moving is_ody_obmc_chip method to libpdbg.h so that other applications can use rather than writing there own functions. Signed-off-by: Marri Devender Rao Change-Id: I72b50c1f16dd6b1030137f7086d621338592151d --- libpdbg/libpdbg.h | 8 ++++++++ libpdbg/target.h | 8 -------- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/libpdbg/libpdbg.h b/libpdbg/libpdbg.h index ab4525963..0dea113c3 100644 --- a/libpdbg/libpdbg.h +++ b/libpdbg/libpdbg.h @@ -855,6 +855,14 @@ struct pdbg_target* get_ody_fsi_target(struct pdbg_target* target); */ struct pdbg_target* get_ody_chipop_target(struct pdbg_target* target); +/** + * @brief Return true if given target is odyssey chip + * @param[in] target - pdbg target + * + * @return true if target is of odyssey ocmb chip + */ +bool is_ody_ocmb_chip(struct pdbg_target *target); + /** * @brief Read data from i2c device * diff --git a/libpdbg/target.h b/libpdbg/target.h index a0bd744e0..7d8cdb65a 100644 --- a/libpdbg/target.h +++ b/libpdbg/target.h @@ -108,14 +108,6 @@ bool pdbg_context_is_short(void); */ void clear_target_classes(); -/** - * @brief Return true if given target is odyssey chip - * @param[in] target - pdbg target - * - * @return true if target is of odyssey ocmb chip - */ -bool is_ody_ocmb_chip(struct pdbg_target *target); - /** * @brief Return true if given target is child of odyssey chip * @param[in] target - pdbg target