]> git.baikalelectronics.ru Git - kernel.git/commit
nvmem: qfprom: Allow single byte accesses for read/write
authorVivek Gautam <vivek.gautam@codeaurora.org>
Wed, 4 Jan 2017 16:18:09 +0000 (16:18 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 4 Jan 2017 17:22:47 +0000 (18:22 +0100)
commitc510b274b8f2f40df1c817604ecb8fa78fd92b0b
tree3d0e97d8e9686e4a453983312c5cdc73d4753847
parent6b353d82e96dd8f8310e1dfcb8e99f258f4523e1
nvmem: qfprom: Allow single byte accesses for read/write

The nvmem core driver supports to read and write single
byte. So, allow qfprom to support this feature.
This change helps in extracting a required value based
on bit-offset and number of bits for the required value
in the nvmem cell.

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