Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1713856
| Path | csiph.com!goblin2!goblin.stu.neva.ru!weretis.net!feeder4.news.weretis.net!storethat.news.telefonica.de!telefonica.de!news.panservice.it!bofh.it!news.nic.it!robomod |
|---|---|
| From | Arvind Yadav <arvind.yadav.cs@gmail.com> |
| Newsgroups | linux.kernel |
| Subject | [PATCH 17/30] Input: wacom_serial4: constify serio_device_id |
| Date | Thu, 17 Aug 2017 13:50:02 +0200 |
| Message-ID | <ufrtg-4hy-29@gated-at.bofh.it> (permalink) |
| References | <ufrjz-4bT-9@gated-at.bofh.it> |
| X-Original-To | dmitry.torokhov@gmail.com |
| Dkim-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=nu0qhKaXHVMEB7D8CTLE4YC6NULCvlApDMG7jgWZiJE=; b=EbYUj9/9XfwlA78xTmEX4VnWt4AUOMGPc3DsSGrBn55uEzYTWuH0qNRJcwdmd+rO7K qfjYYB0v8QAJBsVWK8aJVbvUuVmiGKC3CydZWhiCv8bSSZkuy1dB/msDFcVn5zywJjyv 3oefFiCtOzVdZ2jC6CsDE6L088CW0cFvxUmcXBuIGjds09Gyin4FNdxv61L8GKR+kZDL GmnD7kAJK/gWwQ6gLXSIK9N5SaTpC6kA+per4zLPGyhzCCe4ZjxGmerdgZGERkfhvT4Q 2er2R3jxRLHKDtdh4LGvKX5yIYfFhksopAyfA79HlJRuyOUx9I4wp6W87gU2yn0r0yCM lcXw== |
| X-Google-Dkim-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=nu0qhKaXHVMEB7D8CTLE4YC6NULCvlApDMG7jgWZiJE=; b=L7NUFH3h8IBbJ59HMk5WTz2JnNc4CLasGFfC05kbwlG27DI4zctztwByH1od658dqQ S7/el2LKf5X8jiJ2wFFHon1Z4YZ9AhPaR3zRXc5m34yv6miF1EFI2nPrv3EiOY3gjYJj m3W+QaWmcqLAN1Uaf6ZYOGhFfxxsjLbuocUswslItUpypydxX+xzDcxiPTJW8Uoavt1L qMzt2Elw+2rKKDz+cBEclxbVmg24eLVfoBfbaPmH8VhUplsVyYg9bUYnjeu9ORWaUe3w 85mHfo3XhoY/TIb8s0U+5mnMzw5sr8d/I9uNSbR2JR5xoxZml8QN9MlwHIEr2/mvjRy1 HeLg== |
| X-Gm-Message-State | AHYfb5i0FYPTuRi0QRs5kDoquR1SByot8abddLodoR1hPw7+cKEjKu6o dYvlYDZZmkaXmg== |
| X-Received | by 10.98.0.147 with SMTP id 141mr4983358pfa.100.1502969992731; Thu, 17 Aug 2017 04:39:52 -0700 (PDT) |
| X-Mailer | git-send-email 2.7.4 |
| Sender | robomod@news.nic.it |
| List-ID | <linux-kernel.vger.kernel.org> |
| X-Mailing-List | linux-kernel@vger.kernel.org |
| Approved | robomod@news.nic.it |
| Lines | 24 |
| Organization | linux.* mail to news gateway |
| X-Original-Cc | linux-kernel@vger.kernel.org, linux-input@vger.kernel.org |
| X-Original-Date | Thu, 17 Aug 2017 17:08:18 +0530 |
| X-Original-Message-ID | <1502969911-25408-18-git-send-email-arvind.yadav.cs@gmail.com> |
| X-Original-References | <1502969911-25408-1-git-send-email-arvind.yadav.cs@gmail.com> |
| X-Original-Sender | linux-kernel-owner@vger.kernel.org |
| Xref | csiph.com linux.kernel:1713856 |
Show key headers only | View raw
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/tablet/wacom_serial4.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/input/tablet/wacom_serial4.c b/drivers/input/tablet/wacom_serial4.c
index 20ab802..38bfaca 100644
--- a/drivers/input/tablet/wacom_serial4.c
+++ b/drivers/input/tablet/wacom_serial4.c
@@ -594,7 +594,7 @@ static int wacom_connect(struct serio *serio, struct serio_driver *drv)
return err;
}
-static struct serio_device_id wacom_serio_ids[] = {
+static const struct serio_device_id wacom_serio_ids[] = {
{
.type = SERIO_RS232,
.proto = SERIO_WACOM_IV,
--
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