Re: [PATCH] ASoC: Fix Kconfig indentation

From: Joe Perches
Date: Wed Nov 20 2019 - 12:02:49 EST

On Wed, 2019-11-20 at 09:02 -0600, Pierre-Louis Bossart wrote:
> On 11/20/19 7:32 AM, Krzysztof Kozlowski wrote:
> > Adjust indentation from spaces to tab (+optional two spaces) as in
> > coding style with command like:
> > $ sed -e 's/^ /\t/' -i */Kconfig
> Thanks for the changes, is there a way for or some tool to
> detect this?

Sure, if you want to stick a Kconfig grammar parser into
checkpatch and validate any Kconfig file content.

Otherwise, maybe improve scripts/kconfig/lexer.l and
(optionally?) emit a message whenever the line's content
doesn't fit some preferred style.