diff options
author | Dan Williams <dan.j.williams@intel.com> | 2018-04-02 22:14:25 +0200 |
---|---|---|
committer | Dan Williams <dan.j.williams@intel.com> | 2018-04-03 20:51:42 +0200 |
commit | 243f29fe449bbead69076ad861dbe8f51b42c4d7 (patch) | |
tree | ec5ad09b16c163b79d0cbb59714fae785648ac96 /drivers/acpi | |
parent | nfit, address-range-scrub: fix scrub in-progress reporting (diff) | |
download | linux-243f29fe449bbead69076ad861dbe8f51b42c4d7.tar.xz linux-243f29fe449bbead69076ad861dbe8f51b42c4d7.zip |
libnvdimm: add an api to cast a 'struct nd_region' to its 'struct device'
For debug, it is useful for bus providers to be able to retrieve the
'struct device' associated with an nd_region instance that it
registered. We already have to_nd_region() to perform the reverse cast
operation, in fact its duplicate declaration can be removed from the
private drivers/nvdimm/nd.h header.
Reviewed-by: Dave Jiang <dave.jiang@intel.com>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'drivers/acpi')
0 files changed, 0 insertions, 0 deletions