mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-26 01:20:52 +07:00
[media] si2157: print firmware version
Firmware version could be printed similarly than si2168 driver does. Signed-off-by: Antti Palosaari <crope@iki.fi> Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
This commit is contained in:
parent
e7f3f9f362
commit
c7011845ca
@ -184,6 +184,17 @@ static int si2157_init(struct dvb_frontend *fe)
|
||||
if (ret)
|
||||
goto err;
|
||||
|
||||
/* query firmware version */
|
||||
memcpy(cmd.args, "\x11", 1);
|
||||
cmd.wlen = 1;
|
||||
cmd.rlen = 10;
|
||||
ret = si2157_cmd_execute(client, &cmd);
|
||||
if (ret)
|
||||
goto err;
|
||||
|
||||
dev_info(&client->dev, "firmware version: %c.%c.%d\n",
|
||||
cmd.args[6], cmd.args[7], cmd.args[8]);
|
||||
|
||||
dev->fw_loaded = true;
|
||||
|
||||
warm:
|
||||
|
Loading…
Reference in New Issue
Block a user