[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20250613082157.50040-3-panchuang@vivo.com>
Date: Fri, 13 Jun 2025 16:21:56 +0800
From: Pan Chuang <panchuang@...o.com>
To: mchehab@...nel.org
Cc: linux-media@...r.kernel.org,
linux-kernel@...r.kernel.org,
Pan Chuang <panchuang@...o.com>
Subject: [PATCH 2/3] pci: cx23885: cimax2: Use str_read_write() helper
Remove hard-coded strings by using the str_read_write() helper.
Signed-off-by: Pan Chuang <panchuang@...o.com>
---
drivers/media/pci/cx23885/cimax2.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/media/pci/cx23885/cimax2.c b/drivers/media/pci/cx23885/cimax2.c
index 06e41f92092d..458fa779274a 100644
--- a/drivers/media/pci/cx23885/cimax2.c
+++ b/drivers/media/pci/cx23885/cimax2.c
@@ -224,7 +224,7 @@ static int netup_ci_op_cam(struct dvb_ca_en50221 *en50221, int slot,
return -EREMOTEIO;
ci_dbg_print("%s: %s: chipaddr=[0x%x] addr=[0x%02x], %s=%x\n", __func__,
- (read) ? "read" : "write", state->ci_i2c_addr, addr,
+ str_read_write(read), state->ci_i2c_addr, addr,
(flag == NETUP_CI_CTL) ? "ctl" : "mem",
(read) ? mem : data);
--
2.39.0
Powered by blists - more mailing lists