diff mbox series

[v2,2/2] i2c: i2c-amd-mp2: Remove unused macro

Message ID 20210129192553.55906-3-mail@richard-neumann.de
State Superseded
Headers show
Series i2c: i2c-amd-mp2: Clean up driver | expand

Commit Message

Richard Neumann Jan. 29, 2021, 7:25 p.m. UTC
From: Richard Neumann <mail@richard-neumann.de>

Remove unused work_amd_i2c_common macro.

Signed-off-by: Richard Neumann <mail@richard-neumann.de>
---
 drivers/i2c/busses/i2c-amd-mp2.h | 3 ---
 1 file changed, 3 deletions(-)

Comments

Andy Shevchenko Feb. 1, 2021, 10:38 a.m. UTC | #1
On Fri, Jan 29, 2021 at 08:25:53PM +0100, mail@richard-neumann.de wrote:
> From: Richard Neumann <mail@richard-neumann.de>

> 

> Remove unused work_amd_i2c_common macro.


I think I gave you a tag on this. If no, here it is
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>


Please carry it on in a new versions (as a part of the commit message,
tag block, usually after your SoB in chronological order of receiving).

> Signed-off-by: Richard Neumann <mail@richard-neumann.de>

> ---

>  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

> 


-- 
With Best Regards,
Andy Shevchenko
diff mbox series

Patch

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);