linux-media.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/4] media: ir_toy: print firmwware version in correct format
@ 2021-09-14 15:18 Sean Young
  2021-09-14 15:18 ` [PATCH 2/4] media: ir_toy: deal with residual irdata before expected response Sean Young
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Sean Young @ 2021-09-14 15:18 UTC (permalink / raw)
  To: linux-media; +Cc: Georgi Bakalski

A value of 25 means firmware version 2.5.

Signed-off-by: Sean Young <sean@mess.org>
---
 drivers/media/rc/ir_toy.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/drivers/media/rc/ir_toy.c b/drivers/media/rc/ir_toy.c
index b0dc19d36ac9..45d39b6e49c0 100644
--- a/drivers/media/rc/ir_toy.c
+++ b/drivers/media/rc/ir_toy.c
@@ -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",
-- 
2.31.1


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2021-09-14 15:18 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-14 15:18 [PATCH 1/4] media: ir_toy: print firmwware version in correct format Sean Young
2021-09-14 15:18 ` [PATCH 2/4] media: ir_toy: deal with residual irdata before expected response Sean Young
2021-09-14 15:18 ` [PATCH 3/4] media: ir_toy: do not resubmit broken urb Sean Young
2021-09-14 15:18 ` [PATCH 4/4] media: ir_toy: prevent device from hanging during transmit Sean Young

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).