kernel-doc: Allow anonymous enum
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Mon, 12 Aug 2019 16:06:31 +0000 (19:06 +0300)
committerJonathan Corbet <corbet@lwn.net>
Mon, 12 Aug 2019 21:00:37 +0000 (15:00 -0600)
commit15e2544ed38a1e39b702277bdcd2bb1275e78925
treef5ed50d2515b81422cd23e15fc68018bdb828468
parent82bf829b692d6bc9c44cd43ddd75a9b04f1bfa8d
kernel-doc: Allow anonymous enum

In C is a valid construction to have an anonymous enumerator.

Though we have now:

  drivers/pinctrl/intel/pinctrl-intel.c:240: error: Cannot parse enum!

Support it in the kernel-doc script.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
scripts/kernel-doc