drivers: clock: Microchip XEC: Fix enum usage
We get a compiler warning in this code with arm clang due to using the wrong enum type for the variable. The enum should be of type `enum periph_clk32k_src` so replace VBR_CLK32K_SRC_PIN_XTAL with PERIPH_CLK32K_SRC_PIN_XTAL. Signed-off-by: Kumar Gala <kumar.gala@intel.com>
This commit is contained in:
parent
c194cb76ad
commit
388d522c32
1 changed files with 1 additions and 1 deletions
|
@ -640,7 +640,7 @@ enum periph_clk32k_src get_periph_32k_source(const struct device *dev)
|
|||
} else if (temp == VBR_CLK32K_SRC_PIN_SO) {
|
||||
src = PERIPH_CLK32K_SRC_PIN_SO;
|
||||
} else {
|
||||
src = VBR_CLK32K_SRC_PIN_XTAL;
|
||||
src = PERIPH_CLK32K_SRC_PIN_XTAL;
|
||||
}
|
||||
|
||||
return src;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue