Set codespell dictionary from environment
This commit reverts the removal of this feature in:
3eaa47e ("Remove codespellfile setting from .checkpatch")
Change-Id: I8184b8cc6cb57e772e576bde439bada69bb1b779
Signed-off-by: Gabor Toth <gabor.toth2@arm.com>
diff --git a/.checkpatch b/.checkpatch
index dd8dad9..4d69058 100644
--- a/.checkpatch
+++ b/.checkpatch
@@ -7,6 +7,8 @@
--showfile
--codespell
+# Please set CODESPELL_FILE in the environment.
+--codespellfile="$CODESPELL_FILE"
--ignore SPDX_LICENSE_TAG,PREFER_KERNEL_TYPES,USLEEP_RANGE,GERRIT_CHANGE_ID,FILE_PATH_CHANGES,UNNECESSARY_PARENTHESES,PREFER_DEFINED_ATTRIBUTE_MACRO,BIT_MACRO
--no-tree
--terse