boards: mec15xxevb_assy6853/mec15xxevb_assy6853: Fix compile warning

If CONFIG_I2C=n is set we get a build warning:

pinmux.c:35:13: error: 'i2c_pinmux' defined but not used

Fix this by adding ifdef protection around i2c_pinmux.

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
This commit is contained in:
Kumar Gala 2021-02-26 07:34:12 -06:00 committed by Kumar Gala
commit a61744d952
2 changed files with 4 additions and 0 deletions

View file

@ -32,6 +32,7 @@ struct pinmux_ports_t {
#endif
};
#ifdef CONFIG_I2C_XEC
static void i2c_pinmux(struct pinmux_ports_t *p, uint8_t port_sel)
{
switch (port_sel) {
@ -97,6 +98,7 @@ static void i2c_pinmux(struct pinmux_ports_t *p, uint8_t port_sel)
break;
}
}
#endif
static void configure_debug_interface(void)
{

View file

@ -32,6 +32,7 @@ struct pinmux_ports_t {
#endif
};
#ifdef CONFIG_I2C_XEC
static void i2c_pinmux(struct pinmux_ports_t *p, uint8_t port_sel)
{
switch (port_sel) {
@ -97,6 +98,7 @@ static void i2c_pinmux(struct pinmux_ports_t *p, uint8_t port_sel)
break;
}
}
#endif
static void configure_debug_interface(void)
{