2021-02-01 17:55:43

by Richard Neumann

[permalink] [raw]
Subject: [PATCH v3 2/2] i2c: i2c-amd-mp2: Remove unused macro

Remove unused work_amd_i2c_common() macro.

Signed-off-by: Richard Neumann <[email protected]>
Reviewed-by: Andy Shevchenko <[email protected]>
---
drivers/i2c/busses/i2c-amd-mp2.h | 3 ---
1 file changed, 3 deletions(-)

diff --git a/drivers/i2c/busses/i2c-amd-mp2.h b/drivers/i2c/busses/i2c-amd-mp2.h
index 6b91e285745d..ddecd0c88656 100644
--- a/drivers/i2c/busses/i2c-amd-mp2.h
+++ b/drivers/i2c/busses/i2c-amd-mp2.h
@@ -185,9 +185,6 @@ struct amd_mp2_dev {
unsigned int probed;
};

-#define work_amd_i2c_common(__work) \
- container_of(__work, struct amd_i2c_common, work.work)
-
/* PCIe communication driver */

int amd_mp2_rw(struct amd_i2c_common *i2c_common, enum i2c_cmd reqcmd);
--
2.30.0


2021-02-01 22:09:57

by Wolfram Sang

[permalink] [raw]
Subject: Re: [PATCH v3 2/2] i2c: i2c-amd-mp2: Remove unused macro

On Mon, Feb 01, 2021 at 06:51:38PM +0100, Richard Neumann wrote:
> Remove unused work_amd_i2c_common() macro.
>
> Signed-off-by: Richard Neumann <[email protected]>
> Reviewed-by: Andy Shevchenko <[email protected]>

Applied to for-next, thanks!


Attachments:
(No filename) (278.00 B)
signature.asc (849.00 B)
Download all attachments