Lv Zheng 39411f710d acpisrc: Allow simple typedef union/struct
acpisrc can only convert the followings:
  typedef union/struct foo {
      int bar;
  } FOO;
Into:
  union struct foo {
      int bar;
  };

It cannot detect the followings:
  typedef union/struct foo FOO;
And convert it into:
  typedef union/struct foo foo;

This patch facilitates acpisrc to detect such forms, thus allows some
typedefs to be converted using the latter style with "SIMPLE" conversion
(see ACPI_EFI_FILE in astable.c as a demo). Lv Zheng.

Signed-off-by: Lv Zheng <lv.zheng@intel.com>
2017-03-16 16:02:31 +08:00
..