]> Git Repo - linux.git/commit
nvmem: resolve cells from DT at registration time
authorBartosz Golaszewski <[email protected]>
Fri, 21 Sep 2018 13:40:16 +0000 (06:40 -0700)
committerGreg Kroah-Hartman <[email protected]>
Fri, 28 Sep 2018 13:14:54 +0000 (15:14 +0200)
commite888d445ac33a5b0288d670ecd970908b13f07cd
tree1c56d79c6ad7bb201b8f49277daf5e2ef1dd3b9a
parentb985f4cba6dbb3b60ad119c6f7e5cbad6f0d7e45
nvmem: resolve cells from DT at registration time

Currently we're creating a new cell structure everytime a DT user
calls nvmem_cell_get().

Change this behavior by resolving the cells during nvmem provider
registration and adding all cells to the provider's list. Make
of_nvmem_cell_get() just parse the phandle and look the cell up
in the relevant provider's list.

Don't drop the cell in nvmem_cell_put().

Signed-off-by: Bartosz Golaszewski <[email protected]>
Signed-off-by: Srinivas Kandagatla <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
drivers/nvmem/core.c
This page took 0.055484 seconds and 4 git commands to generate.