From eae9c8d50614b0fefb6d244aea9713068d426ae7 Mon Sep 17 00:00:00 2001 From: Heinrich Schuchardt Date: Mon, 6 Jan 2025 11:53:36 +0100 Subject: [PATCH] phy: m31: correct printf code in sys_m31_dphy_tx_configure() MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Building results in a warning drivers/phy/m31/phy-m31-dphy-tx0.c:229:29: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 4 has type ‘uint32_t’ {aka ‘unsigned int’} [-Wformat=] drivers/phy/m31/phy-m31-dphy-tx0.c:229:45: note: format string is defined here 229 | dev_info(dphy->dev, "%s bitrate = %ld\n", __func__, bitrate); | ~~^ | | | long int Change to printf code to %d. Signed-off-by: Heinrich Schuchardt --- drivers/phy/m31/phy-m31-dphy-tx0.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/phy/m31/phy-m31-dphy-tx0.c b/drivers/phy/m31/phy-m31-dphy-tx0.c index 63e3271b6ef1..6d85809f9518 100644 --- a/drivers/phy/m31/phy-m31-dphy-tx0.c +++ b/drivers/phy/m31/phy-m31-dphy-tx0.c @@ -226,7 +226,7 @@ static int sys_m31_dphy_tx_configure(struct phy *phy, union phy_configure_opts * dphy = phy_get_drvdata(phy); bitrate = opts->mipi_dphy.hs_clk_rate;//1188M 60fps - dev_info(dphy->dev, "%s bitrate = %ld\n", __func__, bitrate); + dev_info(dphy->dev, "%s bitrate = %d\n", __func__, bitrate); sf_dphy_set_reg(dphy->topsys + 0x8, 0x10, RG_CDTX_L0N_HSTX_RES_SHIFT, RG_CDTX_L0N_HSTX_RES_MASK);