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:
parent
2dce6bff7f
commit
a61744d952
2 changed files with 4 additions and 0 deletions
|
@ -32,6 +32,7 @@ struct pinmux_ports_t {
|
||||||
#endif
|
#endif
|
||||||
};
|
};
|
||||||
|
|
||||||
|
#ifdef CONFIG_I2C_XEC
|
||||||
static void i2c_pinmux(struct pinmux_ports_t *p, uint8_t port_sel)
|
static void i2c_pinmux(struct pinmux_ports_t *p, uint8_t port_sel)
|
||||||
{
|
{
|
||||||
switch (port_sel) {
|
switch (port_sel) {
|
||||||
|
@ -97,6 +98,7 @@ static void i2c_pinmux(struct pinmux_ports_t *p, uint8_t port_sel)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
static void configure_debug_interface(void)
|
static void configure_debug_interface(void)
|
||||||
{
|
{
|
||||||
|
|
|
@ -32,6 +32,7 @@ struct pinmux_ports_t {
|
||||||
#endif
|
#endif
|
||||||
};
|
};
|
||||||
|
|
||||||
|
#ifdef CONFIG_I2C_XEC
|
||||||
static void i2c_pinmux(struct pinmux_ports_t *p, uint8_t port_sel)
|
static void i2c_pinmux(struct pinmux_ports_t *p, uint8_t port_sel)
|
||||||
{
|
{
|
||||||
switch (port_sel) {
|
switch (port_sel) {
|
||||||
|
@ -97,6 +98,7 @@ static void i2c_pinmux(struct pinmux_ports_t *p, uint8_t port_sel)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
static void configure_debug_interface(void)
|
static void configure_debug_interface(void)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue