[PATCH 1/3] pci: cx23885: altera-ci: Use str_read_write() helper

Pan Chuang posted 3 patches 3 months, 4 weeks ago
[PATCH 1/3] pci: cx23885: altera-ci: 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/altera-ci.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/media/pci/cx23885/altera-ci.c b/drivers/media/pci/cx23885/altera-ci.c
index 0dc348215b72..e154a39d86ef 100644
--- a/drivers/media/pci/cx23885/altera-ci.c
+++ b/drivers/media/pci/cx23885/altera-ci.c
@@ -282,7 +282,7 @@ static int altera_ci_op_cam(struct dvb_ca_en50221 *en50221, int slot,
 	mutex_unlock(&inter->fpga_mutex);
 
 	ci_dbg_print("%s: %s: addr=[0x%02x], %s=%x\n", __func__,
-			(read) ? "read" : "write", addr,
+			str_read_write(read), addr,
 			(flag == NETUP_CI_FLG_CTL) ? "ctl" : "mem",
 			(read) ? mem : val);
 
-- 
2.39.0