]> git.karo-electronics.de Git - karo-tx-linux.git/commit
nvmem: core: Allow ignoring length when reading a cell
authorVivek Gautam <vivek.gautam@codeaurora.org>
Sun, 22 Jan 2017 23:02:38 +0000 (23:02 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 25 Jan 2017 10:49:39 +0000 (11:49 +0100)
commit3b4a687726f0019115bd903d9724db6cdcbb00fe
treee6209f4fd1eeae6e56b8dbd5575bdcaee1541001
parent1e928fff9a7444cbfbbb2420eb8cec79bfa53c6f
nvmem: core: Allow ignoring length when reading a cell

nvmem_cell_read() API fills in the argument 'len' with
the number of bytes read from the cell. Many users don't
care about this length value. So allow users to pass a
NULL pointer to this len field.

Signed-off-by: Vivek Gautam <vivek.gautam@codeaurora.org>
Reviewed-by: Stephen Boyd <sboyd@codeaurora.org>
Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/nvmem/core.c