kw (c | codestyle) [<directory> | <file> | <patch>]
The checkpatch tool is one of the most fabulous scripts provided by the Linux Kernel to help developers follow the code style adopted by the project. This command is a wrapper for checkpatch, with the goal of simplifying the use of this tool; notice that you can specify a single file, an entire directory, or a single patch.
- <directory>, <file>, <patch>:
Define which files to run checkpatch on. Defaults to current working directory if it is a kernel tree.
For these examples, we suppose the fields in your kworkflow.config file are already configured.
For checking the code style:
cd <kernel-path> kw c drivers/iio/dummy/ kw c drivers/iio/dummy/iio_simple_dummy.c