]> git.baikalelectronics.ru Git - kernel.git/commit
libnvdimm: Replace guid_copy() with import_guid() where it makes sense
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Wed, 22 Apr 2020 13:05:39 +0000 (16:05 +0300)
committerDan Williams <dan.j.williams@intel.com>
Wed, 22 Apr 2020 23:26:03 +0000 (16:26 -0700)
commit07d765a395a736a513d9942d7c4a3847a87423b3
treecc5530fd871c714d44988406304e724912e2fecb
parente4e79bc94ba2381f2a677c8e345f3bbe0674f2c2
libnvdimm: Replace guid_copy() with import_guid() where it makes sense

There is a specific API to treat raw data as GUID, i.e. import_guid().
Use it instead of guid_copy() with explicit casting.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Ira Weiny <ira.weiny@intel.com>
Link: https://lore.kernel.org/r/20200422130539.45636-1-andriy.shevchenko@linux.intel.com
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
drivers/acpi/nfit/core.c