i2c: dev: Define pr_fmt() and drop duplication substrings
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Mon, 12 Jul 2021 14:23:22 +0000 (17:23 +0300)
committerWolfram Sang <wsa@kernel.org>
Wed, 11 Aug 2021 14:46:41 +0000 (16:46 +0200)
commit295e0e7be753e4e329858482236088e41a118487
tree90e8b53a58894bc7f5e1dc97de0911f89c4f4771
parent85888376a8caf384e1365c63267d97637cfd4644
i2c: dev: Define pr_fmt() and drop duplication substrings

Define pr_fmt() to print module name as prefix and at the same time
drop duplication substrings in the messages.

While at it, convert printk(<LEVEL>) to pr_<level>().

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Wolfram Sang <wsa@kernel.org>
drivers/i2c/i2c-dev.c