From: XU pengfei <xupengfei@nfschina.com>
To: wsa@kernel.org
Cc: linux-i2c@vger.kernel.org, linux-kernel@vger.kernel.org,
xupengfei@nfschina.com
Subject: [PATCH v2] i2c/busses/drivers/img: remove unnecessary (void*) conversions.
Date: Mon, 25 Jul 2022 09:33:36 +0800 [thread overview]
Message-ID: <20220725013335.3624-1-xupengfei@nfschina.com> (raw)
In-Reply-To: <YtzbQZKJk+qS9PMs@shikoro>
remove unnecessary void* type casting.
Signed-off-by: XU pengfei <xupengfei@nfschina.com>
---
drivers/i2c/busses/i2c-img-scb.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/i2c/busses/i2c-img-scb.c b/drivers/i2c/busses/i2c-img-scb.c
index 8e987945ed45..d72211cfda03 100644
--- a/drivers/i2c/busses/i2c-img-scb.c
+++ b/drivers/i2c/busses/i2c-img-scb.c
@@ -913,7 +913,7 @@ static unsigned int img_i2c_auto(struct img_i2c *i2c,
static irqreturn_t img_i2c_isr(int irq, void *dev_id)
{
- struct img_i2c *i2c = (struct img_i2c *)dev_id;
+ struct img_i2c *i2c = dev_id;
u32 int_status, line_status;
/* We handle transaction completion AFTER accessing registers */
unsigned int hret;
--
2.18.2
prev parent reply other threads:[~2022-07-25 1:34 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-06-29 6:09 [PATCH 1/1] drivers: remove unnecessary (void*) conversions XU pengfei
2022-07-24 5:40 ` Wolfram Sang
2022-07-25 1:33 ` XU pengfei [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20220725013335.3624-1-xupengfei@nfschina.com \
--to=xupengfei@nfschina.com \
--cc=linux-i2c@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=wsa@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox