Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

spi: dt-bindings: nuvoton,wpcm450-fiu: Fix error in example (bogus include)

The nuvoton,wpcm450-fiu binding's example includes
nuvoton,wpcm450-clk.h, which has not been merged yet,
thus causing a dt_binding_check error on -next.

Fix this error by simply hardcoding the clock index in the example,
before the breakage spreads any further.

Fixes: dd71cd4dd6c9b ("spi: Add Nuvoton WPCM450 Flash Interface Unit (FIU) bindings")
Reported-by: Rob Herring <robh@kernel.org>
Reported-by: Conor Dooley <conor.dooley@microchip.com>
Signed-off-by: Jonathan Neuschäfer <j.neuschaefer@gmx.net>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://lore.kernel.org/r/20221129102225.3598044-2-j.neuschaefer@gmx.net
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Jonathan Neuschäfer and committed by
Mark Brown
1e2872f5 c6f78746

+1 -2
+1 -2
Documentation/devicetree/bindings/spi/nuvoton,wpcm450-fiu.yaml
··· 45 45 46 46 examples: 47 47 - | 48 - #include <dt-bindings/clock/nuvoton,wpcm450-clk.h> 49 48 spi@c8000000 { 50 49 compatible = "nuvoton,wpcm450-fiu"; 51 50 reg = <0xc8000000 0x1000>, <0xc0000000 0x4000000>; 52 51 #address-cells = <1>; 53 52 #size-cells = <0>; 54 53 reg-names = "control", "memory"; 55 - clocks = <&clk WPCM450_CLK_FIU>; 54 + clocks = <&clk 0>; 56 55 nuvoton,shm = <&shm>; 57 56 58 57 flash@0 {