[PATCH 2/3] pci: cx23885: cimax2: Use str_read_write() helper

Pan Chuang posted 3 patches 3 months, 4 weeks ago
[PATCH 2/3] pci: cx23885: cimax2: Use str_read_write() helper
Posted by Pan Chuang 3 months, 4 weeks ago
Remove hard-coded strings by using the str_read_write() helper.

Signed-off-by: Pan Chuang <panchuang@vivo.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