diff options
author | Wasim Khan <wasim.khan@nxp.com> | 2022-04-19 09:25:18 +0200 |
---|---|---|
committer | Priyanka Jain <priyanka.jain@nxp.com> | 2022-04-20 15:59:55 +0530 |
commit | 78571919402ed9f10cf5ed6a2e44501bd33459fb (patch) | |
tree | f6ee0d23ff96e36ab5f2785a1c0ca62306f5bf29 /board/freescale | |
parent | fd8b281a63b1c067872ebca4557c61facc935e28 (diff) |
common: i2c_mux.c : fix compilation error
For some platforms I2C_MUX_PCA_ADDR_SEC is not used and thus not
defined. Protected calls to select_i2c_ch_pca9547 with
I2C_MUX_PCA_ADDR_SEC to fix compilation issues:
Signed-off-by: Wasim Khan <wasim.khan@nxp.com>
Diffstat (limited to 'board/freescale')
-rw-r--r-- | board/freescale/common/i2c_mux.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/board/freescale/common/i2c_mux.c b/board/freescale/common/i2c_mux.c index fbab86689c2..9523dd0942e 100644 --- a/board/freescale/common/i2c_mux.c +++ b/board/freescale/common/i2c_mux.c @@ -37,6 +37,7 @@ int select_i2c_ch_pca9547(u8 ch, int bus) return 0; } +#ifdef I2C_MUX_PCA_ADDR_SEC int select_i2c_ch_pca9547_sec(u8 ch, int bus) { int ret; @@ -57,5 +58,5 @@ int select_i2c_ch_pca9547_sec(u8 ch, int bus) return 0; } - +#endif #endif |