From: Corentin Labbe <clabbe@baylibre.com>
To: a.zummo@towertech.it, alexandre.belloni@bootlin.com,
rafael.j.wysocki@intel.com
Cc: linux-kernel@vger.kernel.org, linux-rtc@vger.kernel.org,
Corentin Labbe <clabbe@baylibre.com>
Subject: [PATCH 2/2] rtc: cmos: remove useless cast for driver_name
Date: Fri, 6 Mar 2020 07:53:01 +0000 [thread overview]
Message-ID: <1583481181-22972-2-git-send-email-clabbe@baylibre.com> (raw)
In-Reply-To: <1583481181-22972-1-git-send-email-clabbe@baylibre.com>
Now the pnp_driver name is "const char *", there are no need to cast
driver_name.
Signed-off-by: Corentin Labbe <clabbe@baylibre.com>
---
drivers/rtc/rtc-cmos.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/rtc/rtc-cmos.c b/drivers/rtc/rtc-cmos.c
index fb13993fad31..bcc96ab7793f 100644
--- a/drivers/rtc/rtc-cmos.c
+++ b/drivers/rtc/rtc-cmos.c
@@ -1346,7 +1346,7 @@ static const struct pnp_device_id rtc_ids[] = {
MODULE_DEVICE_TABLE(pnp, rtc_ids);
static struct pnp_driver cmos_pnp_driver = {
- .name = (char *) driver_name,
+ .name = driver_name,
.id_table = rtc_ids,
.probe = cmos_pnp_probe,
.remove = cmos_pnp_remove,
--
2.24.1
next prev parent reply other threads:[~2020-03-06 7:53 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-03-06 7:53 [PATCH 1/2] PNP: constify driver name Corentin Labbe
2020-03-06 7:53 ` Corentin Labbe [this message]
2020-03-17 17:46 ` Rafael J. Wysocki
2020-03-18 9:21 ` LABBE Corentin
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=1583481181-22972-2-git-send-email-clabbe@baylibre.com \
--to=clabbe@baylibre.com \
--cc=a.zummo@towertech.it \
--cc=alexandre.belloni@bootlin.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-rtc@vger.kernel.org \
--cc=rafael.j.wysocki@intel.com \
/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;
as well as URLs for NNTP newsgroup(s).