Skip to content

Commit

Permalink
nvmem: zynqmp: Fix the size to one byte to read the correct value fro…
Browse files Browse the repository at this point in the history
…m the nvmem sysfs entry.

In the driver currently the sysfs read value is
4 bytes but it should be 1 byte inorder to read
the correct chipid.

This patch fixes this issue.

Signed-off-by: Nava kishore Manne <navam@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
  • Loading branch information
Nava kishore Manne authored and Michal Simek committed Feb 10, 2017
1 parent 5410386 commit 3494c67
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/nvmem/zynqmp_nvmem.c
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ static int zynqmp_nvmem_read(void *context, unsigned int offset,
static struct nvmem_config econfig = {
.name = "zynqmp-nvmem",
.owner = THIS_MODULE,
.word_size = 4,
.size = 4,
.word_size = 1,
.size = 1,
.read_only = true,
};

Expand Down

0 comments on commit 3494c67

Please sign in to comment.