提交 3b2cfd6e 编写于 作者: O Oliver Endriss 提交者: Mauro Carvalho Chehab

[media] ngene: Update for latest cxd2099

Modifications for latest cxd2099.
Signed-off-by: NOliver Endriss <o.endriss@gmx.de>
Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
上级 9daf9bcc
......@@ -1582,11 +1582,18 @@ static int init_channels(struct ngene *dev)
return 0;
}
static struct cxd2099_cfg cxd_cfg = {
.bitrate = 62000,
.adr = 0x40,
.polarity = 0,
.clock_mode = 0,
};
static void cxd_attach(struct ngene *dev)
{
struct ngene_ci *ci = &dev->ci;
ci->en = cxd2099_attach(0x40, dev, &dev->channel[0].i2c_adapter);
ci->en = cxd2099_attach(&cxd_cfg, dev, &dev->channel[0].i2c_adapter);
ci->dev = dev;
return;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册