Staging: sm750fb: ddk750_help: Included KERN_facility level using dev_info
Subsystems (2)
PATCH v2 1/1 Staging: sm750fb: ddk750_help: Included KERN_facility level using dev_info
Replaced the function printk() with dev_info() to fix the warning generated by checkpatch : printk() should include KERN_ facility level.
---
Changes in v2:
- Replaced the function pr_info() with dev_info()
drivers/staging/sm750fb/ddk750_help.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/sm750fb/ddk750_help.c +1 -1
@@ -11,7 +11,7 @@ void ddk750_set_mmio(void __iomem *addr, unsigned short devId, char revId) devId750 = devId; revId750 = revId;if (revId ==0xfe ) -printk ("found sm750le\n" ); +dev_info ("found sm750le\n" ); }
Signature · 1 line
2.1.0
Sudip Mukherjee
maintainerQuoted 16 lines · Shivani Bhardwaj
Replaced the function
printk()withdev_info()to fix the warning generated by checkpatch :printk()should includeKERN_facility level.Signed-off-by Shivani Bhardwaj <[email protected]>---
Changes in v2:
- Replaced the functionpr_info()withdev_info()drivers/staging/sm750fb/ddk750_help.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/staging/sm750fb/ddk750_help.c +0
-0
drivers/staging/sm750fb/ddk750_help.c void ddk750_set_mmio(void __iomem *addr, unsigned short devId, char revId) · line 14
Quoted 5 lines
drivers/staging/sm750fb/ddk750_help.c +1
-1@@ -11,7 +11,7 @@ void ddk750_set_mmio(void __iomem *addr, unsigned short devId, char revId) devId750 = devId; revId750 = revId;if (revId ==0xfe ) -printk ("found sm750le\n" ); +dev_info ("found sm750le\n" );
Did you try to compile it?
regards
sudip
Quoted 25 lines · Sudip Mukherjee
Quoted 16 lines · Shivani Bhardwaj
Replaced the function
printk()withdev_info()to fix the warning generated by checkpatch :printk()should includeKERN_facility level.Signed-off-by Shivani Bhardwaj <[email protected]>---
Changes in v2:
- Replaced the functionpr_info()withdev_info()drivers/staging/sm750fb/ddk750_help.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/staging/sm750fb/ddk750_help.c +0
-0drivers/staging/sm750fb/ddk750_help.c void ddk750_set_mmio(void __iomem *addr, unsigned short devId, char revId) · line 14
Quoted 5 lines
drivers/staging/sm750fb/ddk750_help.c +1
-1@@ -11,7 +11,7 @@ void ddk750_set_mmio(void __iomem *addr, unsigned short devId, char revId) devId750 = devId; revId750 = revId;if (revId ==0xfe ) -printk ("found sm750le\n" ); +dev_info ("found sm750le\n" );Did you try to compile it?
Quoted 2 lines
regards
sudip
No, I just checked it against checkpatch, I found out that I have used the function in wrong way and I am working on fixing that. Thank you!