scripts: kernel-doc: Restore anonymous enum parsing
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Mon, 2 Nov 2020 17:06:37 +0000 (19:06 +0200)
committerJonathan Corbet <corbet@lwn.net>
Fri, 13 Nov 2020 22:09:19 +0000 (15:09 -0700)
commitae5b17e464146ddb8fee744fa2150922d6072916
tree32bbabf323851201f635a26d0013767eae756456
parentb65f3a9d6c4ff941a101455353a7e645e590947c
scripts: kernel-doc: Restore anonymous enum parsing

The commit d38c8cfb0571 ("scripts: kernel-doc: add support for typedef enum")
broke anonymous enum parsing. Restore it by relying on members rather than
its name.

Fixes: d38c8cfb0571 ("scripts: kernel-doc: add support for typedef enum")
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Cc: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Link: https://lore.kernel.org/r/20201102170637.36138-1-andriy.shevchenko@linux.intel.com
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
scripts/kernel-doc