summaryrefslogtreecommitdiff
path: root/drivers/i2c/busses/i2c-amd-mp2-plat.c
diff options
context:
space:
mode:
authorRichard Neumann <mail@richard-neumann.de>2021-02-01 18:51:37 +0100
committerWolfram Sang <wsa@kernel.org>2021-02-01 23:01:29 +0100
commit267e82b9592d0d97f732d65a63db12b0e0d73bd4 (patch)
tree42d77b5a115875c50879cab5a6f00f9fffe0aedf /drivers/i2c/busses/i2c-amd-mp2-plat.c
parent98d29c410475f30b627502d845794352e9be4046 (diff)
i2c: amd-mp2: convert to PCI logging functions
Use pci_{info,warn,err,dbg} functions of the kernel's PCI API. Remove unnecessary ndev_pdev(), ndev_name() and ndev_dev() macros. While at it, remove useless __func__ from logging. Signed-off-by: Richard Neumann <mail@richard-neumann.de> Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Signed-off-by: Wolfram Sang <wsa@kernel.org>
Diffstat (limited to 'drivers/i2c/busses/i2c-amd-mp2-plat.c')
-rw-r--r--drivers/i2c/busses/i2c-amd-mp2-plat.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/i2c/busses/i2c-amd-mp2-plat.c b/drivers/i2c/busses/i2c-amd-mp2-plat.c
index 506433bc0ff2..de058671f9b8 100644
--- a/drivers/i2c/busses/i2c-amd-mp2-plat.c
+++ b/drivers/i2c/busses/i2c-amd-mp2-plat.c
@@ -88,8 +88,7 @@ static void i2c_amd_cmd_completion(struct amd_i2c_common *i2c_common)
union i2c_event *event = &i2c_common->eventval;
if (event->r.status == i2c_readcomplete_event)
- dev_dbg(&i2c_dev->pdev->dev, "%s readdata:%*ph\n",
- __func__, event->r.length,
+ dev_dbg(&i2c_dev->pdev->dev, "readdata:%*ph\n", event->r.length,
i2c_common->msg->buf);
complete(&i2c_dev->cmd_complete);