]> 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)
commit1153b0cbe73d4de0cbdd9773ab3b498473b5e14a
tree3d0e97d8e9686e4a453983312c5cdc73d4753847
parentb2fbb0beacb95898fe3ac694edf17f72733d7064
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