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:
Kumar Gala 2023-03-09 19:53:24 +00:00 committed by Carles Cufí
commit 388d522c32

View file

@ -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;