dax: Create a dax device_type
authorDan Williams <dan.j.williams@intel.com>
Wed, 13 Nov 2019 01:12:23 +0000 (17:12 -0800)
committerDan Williams <dan.j.williams@intel.com>
Tue, 19 Nov 2019 17:52:12 +0000 (09:52 -0800)
commit770619a95106340230a72a725c958c037284ec1f
tree66dab7a09fc476dc6cfc7e7bea2b3394ebcdad75
parente755799aefa9385469bec49b2c2ccf1aaa33829a
dax: Create a dax device_type

Move the open coded release method and attribute groups to a 'struct
device_type' instance.

Cc: Ira Weiny <ira.weiny@intel.com>
Cc: Vishal Verma <vishal.l.verma@intel.com>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Reviewed-by: Aneesh Kumar K.V <aneesh.kumar@linux.ibm.com>
Link: https://lore.kernel.org/r/157309904365.1582359.5451327195246651379.stgit@dwillia2-desk3.amr.corp.intel.com
drivers/dax/bus.c