Commit 239870f2 authored by Blomme, Maarten's avatar Blomme, Maarten Committed by David S. Miller

spi_ks8995: regs_size incorrect for some devices

Signed-off-by: default avatarMaarten Blomme <Maarten.Blomme@flir.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 4342696d
...@@ -491,8 +491,8 @@ static int ks8995_probe(struct spi_device *spi) ...@@ -491,8 +491,8 @@ static int ks8995_probe(struct spi_device *spi)
if (err) if (err)
return err; return err;
ks->regs_attr.size = ks->chip->regs_size;
memcpy(&ks->regs_attr, &ks8995_registers_attr, sizeof(ks->regs_attr)); memcpy(&ks->regs_attr, &ks8995_registers_attr, sizeof(ks->regs_attr));
ks->regs_attr.size = ks->chip->regs_size;
err = ks8995_reset(ks); err = ks8995_reset(ks);
if (err) if (err)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment