i2c: imx: Use dev_info to indicate that i2c driver was succesfully registered
PATCH 1/2 i2c: imx: Use dev_info to indicate that i2c driver was succesfully registered
From: Fabio Estevam <[email protected]>
It is useful information in dmesg to have a message indicating that the i2c driver was succesfully registered, so promote it to dev_info.
--- drivers/i2c/busses/i2c-imx.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/i2c/busses/i2c-imx.c +1 -1
@@ -564,7 +564,7 @@ static int __init i2c_imx_probe(struct platform_device *pdev) resource_size(res), res->start);dev_dbg (&i2c_imx->adapter.dev,"adapter name: \"%s\"\n" , i2c_imx->adapter.name); -dev_dbg (&i2c_imx->adapter.dev,"IMX I2C adapter registered\n" ); +dev_info (&i2c_imx->adapter.dev,"IMX I2C adapter registered\n" );return 0 ;/* Return OK */ }
Signature · 1 line
1.7.1
PATCH 2/2 i2c: imx: Use dev_dbg logging style
In reply to a message not in the archiveFrom: Fabio Estevam <[email protected]>
Use dev_dbg logging style as it is done in other parts of this driver.
--- drivers/i2c/busses/i2c-imx.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
drivers/i2c/busses/i2c-imx.c +2 -2
@@ -272,9 +272,9 @@ static void __init i2c_imx_set_clk(struct imx_i2c_struct *i2c_imx,/* dev_dbg() can't be used, because adapter is not yet registered */ #ifdef CONFIG_I2C_DEBUG_BUS -printk (KERN_DEBUG "I2C: <%s> I2C_CLK=%d, REQ DIV=%d\n" , +dev_dbg (&i2c_imx->adapter.dev,"<%s> I2C_CLK=%d, REQ DIV=%d\n" , __func__, i2c_clk_rate, div); -printk (KERN_DEBUG "I2C: <%s> IFDR[IC]=0x%x, REAL DIV=%d\n" , +dev_dbg (&i2c_imx->adapter.dev,"<%s> IFDR[IC]=0x%x, REAL DIV=%d\n" , __func__, i2c_clk_div[i][1 ], i2c_clk_div[i][0 ]);#endif }
Signature · 1 line
1.7.1
Sascha Hauer
Acked-byQuoted 6 lines · Fabio Estevam
From: Fabio Estevam <[email protected]>
It is useful information in dmesg to have a message indicating that the i2c driver was succesfully registered, so promote it to
dev_info.Signed-off-by Fabio Estevam <[email protected]>
Both:
Sascha
Quoted 21 lines
--- drivers/i2c/busses/i2c-imx.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)drivers/i2c/busses/i2c-imx.c +1
-1@@ -564,7 +564,7 @@ static int __init i2c_imx_probe(struct platform_device *pdev) resource_size(res), res->start);dev_dbg (&i2c_imx->adapter.dev,"adapter name: \"%s\"\n" , i2c_imx->adapter.name); -dev_dbg (&i2c_imx->adapter.dev,"IMX I2C adapter registered\n" ); +dev_info (&i2c_imx->adapter.dev,"IMX I2C adapter registered\n" );return 0 ;/* Return OK */ }Signature · 1 line
1.7.1
Signature · 4 lines
Pengutronix e.K. | | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
Quoted 6 lines · Fabio Estevam
From: Fabio Estevam <[email protected]>
It is useful information in dmesg to have a message indicating that the i2c driver was succesfully registered, so promote it to
dev_info.Signed-off-by Fabio Estevam <[email protected]>
Both applied to -next, thanks!
Signature · 2 lines
Pengutronix e.K. | Wolfram Sang | Industrial Linux Solutions | http://www.pengutronix.de/ |