From: Arvind Yadav <arvind.yadav.cs@gmail.com>
To: dmitry.torokhov@gmail.com
Cc: linux-kernel@vger.kernel.org, linux-input@vger.kernel.org
Subject: [PATCH 21/30] Input: gunze: constify serio_device_id
Date: Thu, 17 Aug 2017 17:08:22 +0530 [thread overview]
Message-ID: <1502969911-25408-22-git-send-email-arvind.yadav.cs@gmail.com> (raw)
In-Reply-To: <1502969911-25408-1-git-send-email-arvind.yadav.cs@gmail.com>
serio_device_id are not supposed to change at runtime. All functions
working with serio_device_id provided by <linux/serio.h> work with
const serio_device_id. So mark the non-const structs as const.
Signed-off-by: Arvind Yadav <arvind.yadav.cs@gmail.com>
---
drivers/input/touchscreen/gunze.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/input/touchscreen/gunze.c b/drivers/input/touchscreen/gunze.c
index e2ee626..4815869 100644
--- a/drivers/input/touchscreen/gunze.c
+++ b/drivers/input/touchscreen/gunze.c
@@ -162,7 +162,7 @@ static int gunze_connect(struct serio *serio, struct serio_driver *drv)
* The serio driver structure.
*/
-static struct serio_device_id gunze_serio_ids[] = {
+static const struct serio_device_id gunze_serio_ids[] = {
{
.type = SERIO_RS232,
.proto = SERIO_GUNZE,
--
2.7.4
next prev parent reply other threads:[~2017-08-17 11:38 UTC|newest]
Thread overview: 32+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-08-17 11:38 [PATCH 00/30] constify input serio_device_id Arvind Yadav
2017-08-17 11:38 ` [PATCH 01/30] Input: iforce: constify serio_device_id Arvind Yadav
2017-08-17 11:38 ` [PATCH 02/30] Input: magellan: " Arvind Yadav
2017-08-17 11:38 ` [PATCH 03/30] Input: spaceball: " Arvind Yadav
2017-08-17 11:38 ` [PATCH 04/30] Input: spaceorb: " Arvind Yadav
2017-08-17 11:38 ` [PATCH 05/30] Input: stinger: " Arvind Yadav
2017-08-17 11:38 ` [PATCH 06/30] Input: twidjoy: " Arvind Yadav
2017-08-17 11:38 ` [PATCH 07/30] Input: warrior: " Arvind Yadav
2017-08-17 11:38 ` [PATCH 08/30] Input: zhenhua: " Arvind Yadav
2017-08-17 11:38 ` [PATCH 09/30] Input: iatkbd: " Arvind Yadav
2017-08-17 11:38 ` [PATCH 10/30] Input: hil_kbd: " Arvind Yadav
2017-08-17 11:38 ` [PATCH 11/30] Input: lkkbd: " Arvind Yadav
2017-08-17 11:38 ` [PATCH 12/30] Input: newtonkbd: " Arvind Yadav
2017-08-17 11:38 ` [PATCH 13/30] Input: stowaway: " Arvind Yadav
2017-08-17 11:38 ` [PATCH 14/30] Input: sunkbd: " Arvind Yadav
2017-08-17 11:38 ` [PATCH 15/30] Input: xtkbd: " Arvind Yadav
2017-08-17 11:38 ` [PATCH 16/30] Input: serio: " Arvind Yadav
2017-08-17 11:38 ` [PATCH 17/30] Input: wacom_serial4: " Arvind Yadav
2017-08-17 11:38 ` [PATCH 18/30] Input: dynapro: " Arvind Yadav
2017-08-17 11:38 ` [PATCH 19/30] Input: elo: " Arvind Yadav
2017-08-17 11:38 ` [PATCH 20/30] Input: fujitsu_ts: " Arvind Yadav
2017-08-17 11:38 ` Arvind Yadav [this message]
2017-08-17 11:38 ` [PATCH 22/30] Input: hampshire: " Arvind Yadav
2017-08-17 11:38 ` [PATCH 23/30] Input: inexio: " Arvind Yadav
2017-08-17 11:38 ` [PATCH 24/30] Input: mtouch: " Arvind Yadav
2017-08-17 11:38 ` [PATCH 25/30] Input: penmount: " Arvind Yadav
2017-08-17 11:38 ` [PATCH 26/30] Input: touchit213: " Arvind Yadav
2017-08-17 11:38 ` [PATCH 27/30] Input: touchright: " Arvind Yadav
2017-08-17 11:38 ` [PATCH 28/30] Input: touchwin: " Arvind Yadav
2017-08-17 11:38 ` [PATCH 29/30] Input: tsc40: " Arvind Yadav
2017-08-17 11:38 ` [PATCH 30/30] Input: wacom_w8001: " Arvind Yadav
2017-08-20 16:31 ` [PATCH 00/30] constify input serio_device_id Dmitry Torokhov
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=1502969911-25408-22-git-send-email-arvind.yadav.cs@gmail.com \
--to=arvind.yadav.cs@gmail.com \
--cc=dmitry.torokhov@gmail.com \
--cc=linux-input@vger.kernel.org \
--cc=linux-kernel@vger.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;
as well as URLs for NNTP newsgroup(s).