[PATCH v2] nvmem: Change to unified property interface

2021-03-29 Thread Kevin Paul Herbert
Change from using device tree (Open Firmware) APIs to the unified 'fwnode' interface. Change of_nvmem_cell_get() to fwnode_nvmem_cell_get(), and add a wrapper for of_nvmem_cell_get(). Change of_nvmem_device_get() to fwnode_nvmem_device_get(). There are no known accessors to the OF interface, so n

[PATCH v2] nvmem: Change to unified property interface

2021-03-29 Thread Kevin Paul Herbert
The original version of this patch correctly stated that the only wrapper needed was for of_nvmem_cell_get(), but included only a wrapper for of_nvmem_device_get(). Replace with the proper wrapper.

[PATCH v2] nvmem: Change to unified property interface

2021-03-29 Thread Kevin Paul Herbert
THis first version of this patch erroneously had an unnecessary wrapper for of_nvmem_device_get() even though the commentary properly stated that the only wrapper needed was of_nvmem_cell_get(). Fix the code to match the intent.