mirror of
https://github.com/torvalds/linux.git
synced 2026-11-30 18:42:21 +00:00
The nvmem cell with a NULL cell name/id should be the one with no accompanying 'nvmem-cell-names' property, and thus will be the cell at index 0 in the device tree. So, we default to index 0 and update the cell index only when nvmem cell name id exists. Suggested-by: Stephen Boyd <[email protected]> Signed-off-by: Vivek Gautam <[email protected]> Reviewed-by: Stephen Boyd <[email protected]> Signed-off-by: Srinivas Kandagatla <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>