提交 239870f2 编写于 作者: B Blomme, Maarten 提交者: David S. Miller

spi_ks8995: regs_size incorrect for some devices

Signed-off-by: NMaarten Blomme <Maarten.Blomme@flir.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 4342696d
......@@ -491,8 +491,8 @@ static int ks8995_probe(struct spi_device *spi)
if (err)
return err;
ks->regs_attr.size = ks->chip->regs_size;
memcpy(&ks->regs_attr, &ks8995_registers_attr, sizeof(ks->regs_attr));
ks->regs_attr.size = ks->chip->regs_size;
err = ks8995_reset(ks);
if (err)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册