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)
commit01d0d2c42a14cee8f619d3e9d571ce3469f5ef51
tree3d0e97d8e9686e4a453983312c5cdc73d4753847
parente09ee853c92011860a4bd2fbdf6126f60fc16bd3
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