fixdep: use existing helper to check modular CONFIG options
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Thu, 11 Jan 2018 13:05:46 +0000 (22:05 +0900)
committerMasahiro Yamada <yamada.masahiro@socionext.com>
Thu, 18 Jan 2018 00:37:39 +0000 (09:37 +0900)
commitab9ce9feed362f3f51e239f9421b220aaf9211aa
tree4f4ed4dd6bb13b5ce56ed71f1ef84097ff081e6c
parent87b95a81357dd6ec679a786cebfe34d0e797f752
fixdep: use existing helper to check modular CONFIG options

str_ends_with() tests if the given token ends with a particular string.
Currently, it is used to check file paths without $(srctree).

Actually, we have one more place where this helper is useful.  Use it
to check if CONFIG option ends with _MODULE.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
scripts/basic/fixdep.c