2023-04-24 06:51:50

by Christophe JAILLET

[permalink] [raw]
Subject: [PATCH] mfd: dln2: Remove the unneeded include <linux/i2c.h>

This driver does not use i2c, so there is no point in including
<linux/i2c.h>

Remove it.

Signed-off-by: Christophe JAILLET <[email protected]>
---
drivers/mfd/dln2.c | 1 -
1 file changed, 1 deletion(-)

diff --git a/drivers/mfd/dln2.c b/drivers/mfd/dln2.c
index c3149729cec2..c7510434380a 100644
--- a/drivers/mfd/dln2.c
+++ b/drivers/mfd/dln2.c
@@ -14,7 +14,6 @@
#include <linux/types.h>
#include <linux/slab.h>
#include <linux/usb.h>
-#include <linux/i2c.h>
#include <linux/mutex.h>
#include <linux/platform_device.h>
#include <linux/mfd/core.h>
--
2.34.1


2023-04-27 16:44:39

by Lee Jones

[permalink] [raw]
Subject: Re: [PATCH] mfd: dln2: Remove the unneeded include <linux/i2c.h>

On Mon, 24 Apr 2023, Christophe JAILLET wrote:

> This driver does not use i2c, so there is no point in including
> <linux/i2c.h>
>
> Remove it.
>
> Signed-off-by: Christophe JAILLET <[email protected]>
> ---
> drivers/mfd/dln2.c | 1 -
> 1 file changed, 1 deletion(-)

Applied, thanks

--
Lee Jones [李琼斯]