Merge "drivers: qcom: cmd-db: Report if command DB is initialized as standalone"

This commit is contained in:
qctecmdr 2019-08-27 16:12:17 -07:00 • committed by Gerrit - the friendly Code Review server
commit 961790582c
2 changed files with 19 additions and 0 deletions

View file

@ -23,6 +23,8 @@ const void *cmd_db_read_aux_data(const char *resource_id, size_t *len);
enum cmd_db_hw_type cmd_db_read_slave_id(const char *resource_id);
int cmd_db_ready(void);
bool cmd_db_is_standalone(void);
#else
static inline u32 cmd_db_read_addr(const char *resource_id)
{ return 0; }
@ -35,5 +37,8 @@ static inline enum cmd_db_hw_type cmd_db_read_slave_id(const char *resource_id)
static inline int cmd_db_ready(void)
{ return -ENODEV; }
static inline bool cmd_db_is_standalone(void)
{ return false; }
#endif /* CONFIG_QCOM_COMMAND_DB */
#endif /* __QCOM_COMMAND_DB_H__ */