From d40c58dc3be57b4d97030ab8d340d17fc74e18cd Mon Sep 17 00:00:00 2001 From: Iker Pedrosa Date: Tue, 14 Mar 2023 16:41:53 +0100 Subject: [PATCH] doc: add coding style Signed-off-by: Iker Pedrosa --- doc/contributions/coding_style.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 doc/contributions/coding_style.md diff --git a/doc/contributions/coding_style.md b/doc/contributions/coding_style.md new file mode 100644 index 00000000..b8ae4171 --- /dev/null +++ b/doc/contributions/coding_style.md @@ -0,0 +1,12 @@ +# Coding style + +* For a general guidance refer to the +[Linux kernel coding style](https://www.kernel.org/doc/html/latest/process/coding-style.html) + +* Patches that change the existing coding style are not welcome, as they make +downstream porting harder for the distributions + +## Indentation + +Tabs are preferred over spaces for indentation. Loading the `.editorconfig` +file in your preferred IDE may help you configure it.