nvmem: core: Handle shift bits in-place if cell->nbits is non-zero
authorAxel Lin <axel.lin@ingics.com>
Wed, 30 Sep 2015 12:35:15 +0000 (13:35 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 4 Oct 2015 11:09:43 +0000 (12:09 +0100)
commitcbf854ab36870b931aeba4edd954015b7c3005a2
tree07ceaff2d1e55a202a13f35e9685c27f34712432
parent7c806883e143dc60439e6bdb3589700ebed1efaa
nvmem: core: Handle shift bits in-place if cell->nbits is non-zero

It's pointless to test (cell->bit_offset || cell->bit_offset).
nvmem_shift_read_buffer_in_place() should be called when
(cell->bit_offset || cell->nbits).

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/nvmem/core.c