mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-23 01:10:04 +00:00
media: ir_toy: print firmware version in correct format
A value of 25 means firmware version 2.5. Signed-off-by: Sean Young <sean@mess.org> Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
This commit is contained in:
parent
c73ba202a8
commit
5173cca012
1 changed files with 3 additions and 2 deletions
|
@ -440,8 +440,9 @@ static int irtoy_probe(struct usb_interface *intf,
|
|||
if (err)
|
||||
goto free_rcdev;
|
||||
|
||||
dev_info(irtoy->dev, "version: hardware %u, firmware %u, protocol %u",
|
||||
irtoy->hw_version, irtoy->sw_version, irtoy->proto_version);
|
||||
dev_info(irtoy->dev, "version: hardware %u, firmware %u.%u, protocol %u",
|
||||
irtoy->hw_version, irtoy->sw_version / 10,
|
||||
irtoy->sw_version % 10, irtoy->proto_version);
|
||||
|
||||
if (irtoy->sw_version < MIN_FW_VERSION) {
|
||||
dev_err(irtoy->dev, "need firmware V%02u or higher",
|
||||
|
|
Loading…
Reference in a new issue