On Thu, 17 Nov 2022 13:38:45 +0100 Krzysztof Kozlowski krzysztof.kozlowski@linaro.org wrote:
The Devicetree bindings document does not have to say in the title that it is a "Devicetree binding", but instead just describe the hardware.
Drop trailing "Devicetree bindings" in various forms (also with trailling full stop):
find Documentation/devicetree/bindings/ -type f -name '*.yaml' \ -not -name 'trivial-devices.yaml' \ -exec sed -i -e 's/^title: (.*) [dD]evice[ -]?[tT]ree [bB]indings?.?$/title: \1/' {} ;
find Documentation/devicetree/bindings/ -type f -name '*.yaml' \ -not -name 'trivial-devices.yaml' \ -exec sed -i -e 's/^title: (.*) [dD]evice[ -]?[nN]ode [bB]indings?.?$/title: \1/' {} ;
find Documentation/devicetree/bindings/ -type f -name '*.yaml' \ -not -name 'trivial-devices.yaml' \ -exec sed -i -e 's/^title: (.*) [dD][tT] [bB]indings?.?$/title: \1/' {} ;
Signed-off-by: Krzysztof Kozlowski krzysztof.kozlowski@linaro.org
I eyeballed the lot and all seem fine to me so Reviewed-by: Jonathan Cameron Jonathan.Cameron@huawei.com