cxl/core: Replace unions with struct_group()
authorKees Cook <keescook@chromium.org>
Sat, 31 Jul 2021 03:25:50 +0000 (20:25 -0700)
committerKees Cook <keescook@chromium.org>
Sat, 25 Sep 2021 15:20:47 +0000 (08:20 -0700)
commit301e68dd9b9b4986d401b967d17e27b91f524143
tree85eb7f39b6d1407bf9868b7a7d1d444fa6c3c55c
parent50d7bd38c3aafc4749e05e8d7fcb616979143602
cxl/core: Replace unions with struct_group()

Use the newly introduced struct_group_typed() macro to clean up the
declaration of struct cxl_regs.

Cc: Alison Schofield <alison.schofield@intel.com>
Cc: Vishal Verma <vishal.l.verma@intel.com>
Cc: Ira Weiny <ira.weiny@intel.com>
Cc: Ben Widawsky <ben.widawsky@intel.com>
Cc: linux-cxl@vger.kernel.org
Suggested-by: Dan Williams <dan.j.williams@intel.com>
Link: https://lore.kernel.org/lkml/1d9a2e6df2a9a35b2cdd50a9a68cac5991e7e5f0.camel@intel.com
Reviewed-by: Dan Williams <dan.j.williams@intel.com>
Signed-off-by: Kees Cook <keescook@chromium.org>
drivers/cxl/cxl.h