Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1713859
| From | Arvind Yadav <arvind.yadav.cs@gmail.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH 20/30] Input: fujitsu_ts: constify serio_device_id |
| Date | 2017-08-17 13:50 +0200 |
| Message-ID | <ufrth-4hy-37@gated-at.bofh.it> (permalink) |
| References | <ufrjz-4bT-9@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
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/fujitsu_ts.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/input/touchscreen/fujitsu_ts.c b/drivers/input/touchscreen/fujitsu_ts.c
index d0e46a7..a0fbb45 100644
--- a/drivers/input/touchscreen/fujitsu_ts.c
+++ b/drivers/input/touchscreen/fujitsu_ts.c
@@ -151,7 +151,7 @@ static int fujitsu_connect(struct serio *serio, struct serio_driver *drv)
/*
* The serio driver structure.
*/
-static struct serio_device_id fujitsu_serio_ids[] = {
+static const struct serio_device_id fujitsu_serio_ids[] = {
{
.type = SERIO_RS232,
.proto = SERIO_FUJITSU,
--
2.7.4
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH 00/30] constify input serio_device_id Arvind Yadav <arvind.yadav.cs@gmail.com> - 2017-08-17 13:40 +0200 [PATCH 02/30] Input: magellan: constify serio_device_id Arvind Yadav <arvind.yadav.cs@gmail.com> - 2017-08-17 13:40 +0200 [PATCH 09/30] Input: iatkbd: constify serio_device_id Arvind Yadav <arvind.yadav.cs@gmail.com> - 2017-08-17 13:50 +0200 [PATCH 11/30] Input: lkkbd: constify serio_device_id Arvind Yadav <arvind.yadav.cs@gmail.com> - 2017-08-17 13:50 +0200 [PATCH 25/30] Input: penmount: constify serio_device_id Arvind Yadav <arvind.yadav.cs@gmail.com> - 2017-08-17 13:50 +0200 [PATCH 18/30] Input: dynapro: constify serio_device_id Arvind Yadav <arvind.yadav.cs@gmail.com> - 2017-08-17 13:50 +0200 [PATCH 03/30] Input: spaceball: constify serio_device_id Arvind Yadav <arvind.yadav.cs@gmail.com> - 2017-08-17 13:50 +0200 [PATCH 22/30] Input: hampshire: constify serio_device_id Arvind Yadav <arvind.yadav.cs@gmail.com> - 2017-08-17 13:50 +0200 [PATCH 26/30] Input: touchit213: constify serio_device_id Arvind Yadav <arvind.yadav.cs@gmail.com> - 2017-08-17 13:50 +0200 [PATCH 12/30] Input: newtonkbd: constify serio_device_id Arvind Yadav <arvind.yadav.cs@gmail.com> - 2017-08-17 13:50 +0200 [PATCH 27/30] Input: touchright: constify serio_device_id Arvind Yadav <arvind.yadav.cs@gmail.com> - 2017-08-17 13:50 +0200 [PATCH 08/30] Input: zhenhua: constify serio_device_id Arvind Yadav <arvind.yadav.cs@gmail.com> - 2017-08-17 13:50 +0200 [PATCH 07/30] Input: warrior: constify serio_device_id Arvind Yadav <arvind.yadav.cs@gmail.com> - 2017-08-17 13:50 +0200 [PATCH 17/30] Input: wacom_serial4: constify serio_device_id Arvind Yadav <arvind.yadav.cs@gmail.com> - 2017-08-17 13:50 +0200 [PATCH 13/30] Input: stowaway: constify serio_device_id Arvind Yadav <arvind.yadav.cs@gmail.com> - 2017-08-17 13:50 +0200 [PATCH 16/30] Input: serio: constify serio_device_id Arvind Yadav <arvind.yadav.cs@gmail.com> - 2017-08-17 13:50 +0200 [PATCH 20/30] Input: fujitsu_ts: constify serio_device_id Arvind Yadav <arvind.yadav.cs@gmail.com> - 2017-08-17 13:50 +0200 [PATCH 24/30] Input: mtouch: constify serio_device_id Arvind Yadav <arvind.yadav.cs@gmail.com> - 2017-08-17 13:50 +0200 [PATCH 01/30] Input: iforce: constify serio_device_id Arvind Yadav <arvind.yadav.cs@gmail.com> - 2017-08-17 13:50 +0200 [PATCH 14/30] Input: sunkbd: constify serio_device_id Arvind Yadav <arvind.yadav.cs@gmail.com> - 2017-08-17 13:50 +0200 [PATCH 10/30] Input: hil_kbd: constify serio_device_id Arvind Yadav <arvind.yadav.cs@gmail.com> - 2017-08-17 13:50 +0200 [PATCH 28/30] Input: touchwin: constify serio_device_id Arvind Yadav <arvind.yadav.cs@gmail.com> - 2017-08-17 13:50 +0200 [PATCH 21/30] Input: gunze: constify serio_device_id Arvind Yadav <arvind.yadav.cs@gmail.com> - 2017-08-17 13:50 +0200 [PATCH 30/30] Input: wacom_w8001: constify serio_device_id Arvind Yadav <arvind.yadav.cs@gmail.com> - 2017-08-17 13:50 +0200 [PATCH 05/30] Input: stinger: constify serio_device_id Arvind Yadav <arvind.yadav.cs@gmail.com> - 2017-08-17 13:50 +0200 [PATCH 23/30] Input: inexio: constify serio_device_id Arvind Yadav <arvind.yadav.cs@gmail.com> - 2017-08-17 13:50 +0200 [PATCH 29/30] Input: tsc40: constify serio_device_id Arvind Yadav <arvind.yadav.cs@gmail.com> - 2017-08-17 13:50 +0200 [PATCH 19/30] Input: elo: constify serio_device_id Arvind Yadav <arvind.yadav.cs@gmail.com> - 2017-08-17 13:50 +0200 Re: [PATCH 00/30] constify input serio_device_id Dmitry Torokhov <dmitry.torokhov@gmail.com> - 2017-08-20 18:40 +0200
csiph-web