V4L/DVB: af9013: output fw version as four digit long
Firmware version is four digit long. Print all four digits instead of three digits used earlier. Signed-off-by: Antti Palosaari <crope@iki.fi> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
This commit is contained in:
committed by
Mauro Carvalho Chehab
parent
8af5e3813b
commit
ce99efa53e
@@ -1578,7 +1578,7 @@ struct dvb_frontend *af9013_attach(const struct af9013_config *config,
|
|||||||
{
|
{
|
||||||
int ret;
|
int ret;
|
||||||
struct af9013_state *state = NULL;
|
struct af9013_state *state = NULL;
|
||||||
u8 buf[3], i;
|
u8 buf[4], i;
|
||||||
|
|
||||||
/* allocate memory for the internal state */
|
/* allocate memory for the internal state */
|
||||||
state = kzalloc(sizeof(struct af9013_state), GFP_KERNEL);
|
state = kzalloc(sizeof(struct af9013_state), GFP_KERNEL);
|
||||||
@@ -1611,12 +1611,12 @@ struct dvb_frontend *af9013_attach(const struct af9013_config *config,
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* firmware version */
|
/* firmware version */
|
||||||
for (i = 0; i < 3; i++) {
|
for (i = 0; i < 4; i++) {
|
||||||
ret = af9013_read_reg(state, 0x5103 + i, &buf[i]);
|
ret = af9013_read_reg(state, 0x5103 + i, &buf[i]);
|
||||||
if (ret)
|
if (ret)
|
||||||
goto error;
|
goto error;
|
||||||
}
|
}
|
||||||
info("firmware version:%d.%d.%d", buf[0], buf[1], buf[2]);
|
info("firmware version:%d.%d.%d.%d", buf[0], buf[1], buf[2], buf[3]);
|
||||||
|
|
||||||
/* settings for mp2if */
|
/* settings for mp2if */
|
||||||
if (state->config.output_mode == AF9013_OUTPUT_MODE_USB) {
|
if (state->config.output_mode == AF9013_OUTPUT_MODE_USB) {
|
||||||
|
Reference in New Issue
Block a user