diff options
author | Antti Palosaari <crope@iki.fi> | 2010-06-17 20:16:12 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2010-08-02 15:43:13 -0400 |
commit | ce99efa53ee2e7989b5f44243518f086977760a6 (patch) | |
tree | af60248bb790d45cc83ac6d56c4156e89fe3c73d /drivers/media/dvb/frontends | |
parent | 8af5e3813b78e429c1774bfac67033c3948c9c8e (diff) |
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>
Diffstat (limited to 'drivers/media/dvb/frontends')
-rw-r--r-- | drivers/media/dvb/frontends/af9013.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/media/dvb/frontends/af9013.c b/drivers/media/dvb/frontends/af9013.c index c10271aa3628..2ba28c5815a2 100644 --- a/drivers/media/dvb/frontends/af9013.c +++ b/drivers/media/dvb/frontends/af9013.c | |||
@@ -1578,7 +1578,7 @@ struct dvb_frontend *af9013_attach(const struct af9013_config *config, | |||
1578 | { | 1578 | { |
1579 | int ret; | 1579 | int ret; |
1580 | struct af9013_state *state = NULL; | 1580 | struct af9013_state *state = NULL; |
1581 | u8 buf[3], i; | 1581 | u8 buf[4], i; |
1582 | 1582 | ||
1583 | /* allocate memory for the internal state */ | 1583 | /* allocate memory for the internal state */ |
1584 | state = kzalloc(sizeof(struct af9013_state), GFP_KERNEL); | 1584 | state = kzalloc(sizeof(struct af9013_state), GFP_KERNEL); |
@@ -1611,12 +1611,12 @@ struct dvb_frontend *af9013_attach(const struct af9013_config *config, | |||
1611 | } | 1611 | } |
1612 | 1612 | ||
1613 | /* firmware version */ | 1613 | /* firmware version */ |
1614 | for (i = 0; i < 3; i++) { | 1614 | for (i = 0; i < 4; i++) { |
1615 | ret = af9013_read_reg(state, 0x5103 + i, &buf[i]); | 1615 | ret = af9013_read_reg(state, 0x5103 + i, &buf[i]); |
1616 | if (ret) | 1616 | if (ret) |
1617 | goto error; | 1617 | goto error; |
1618 | } | 1618 | } |
1619 | info("firmware version:%d.%d.%d", buf[0], buf[1], buf[2]); | 1619 | info("firmware version:%d.%d.%d.%d", buf[0], buf[1], buf[2], buf[3]); |
1620 | 1620 | ||
1621 | /* settings for mp2if */ | 1621 | /* settings for mp2if */ |
1622 | if (state->config.output_mode == AF9013_OUTPUT_MODE_USB) { | 1622 | if (state->config.output_mode == AF9013_OUTPUT_MODE_USB) { |