Re: [RFC 1/4] libnvdimm: add to_{nvdimm,nd_region}_dev()

2017-07-11 Thread Dan Williams
On Mon, Jul 10, 2017 at 9:38 PM, Oliver wrote: > On Tue, Jul 11, 2017 at 9:53 AM, Dan Williams > wrote: >> On Tue, Jun 27, 2017 at 3:28 AM, Oliver O'Halloran wrote: >>> struct device contains the ->of_node pointer so that devices

Re: [RFC 1/4] libnvdimm: add to_{nvdimm,nd_region}_dev()

2017-07-10 Thread Oliver
On Tue, Jul 11, 2017 at 9:53 AM, Dan Williams wrote: > On Tue, Jun 27, 2017 at 3:28 AM, Oliver O'Halloran wrote: >> struct device contains the ->of_node pointer so that devices can be >> assoicated with the device-tree node that created them on DT

Re: [RFC 1/4] libnvdimm: add to_{nvdimm,nd_region}_dev()

2017-07-10 Thread Dan Williams
On Tue, Jun 27, 2017 at 3:28 AM, Oliver O'Halloran wrote: > struct device contains the ->of_node pointer so that devices can be > assoicated with the device-tree node that created them on DT platforms. > libnvdimm hides the struct device for regions and nvdimm devices inside >

[RFC 1/4] libnvdimm: add to_{nvdimm,nd_region}_dev()

2017-06-27 Thread Oliver O'Halloran
struct device contains the ->of_node pointer so that devices can be assoicated with the device-tree node that created them on DT platforms. libnvdimm hides the struct device for regions and nvdimm devices inside of an opaque structure so this patch adds accessors for each to allow the of_nvdimm