commit | 6bb317ce7564fdf3b6bbb3e6ea9193fafde0ba8d | [log] [tgz] |
---|---|---|
author | Yangtao Li <tiny.windzz@gmail.com> | Tue Mar 10 13:22:45 2020 +0000 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Thu Mar 19 07:41:02 2020 +0100 |
tree | d3cef54d8b4ab3e2f47927aba9880bd303535a85 | |
parent | c3f4af8b31834928946b344728edad72d9ec964c [diff] |
nvmem: core: add nvmem_cell_read_common Now there are nvmem_cell_read_u16 and nvmem_cell_read_u32. They are very similar, let's strip out a common part. And use nvmem_cell_read_common to simplify their implementation. Signed-off-by: Yangtao Li <tiny.windzz@gmail.com> Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org> Link: https://lore.kernel.org/r/20200310132257.23358-3-srinivas.kandagatla@linaro.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>