Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1713842 > unrolled thread

[PATCH 00/30] constify input serio_device_id

Started byArvind Yadav <arvind.yadav.cs@gmail.com>
First post2017-08-17 13:40 +0200
Last post2017-08-20 18:40 +0200
Articles 20 on this page of 29 — 2 participants

Back to article view | Back to linux.kernel


Contents

  [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

Page 1 of 2  [1] 2  Next page →


#1713842 — [PATCH 00/30] constify input serio_device_id

FromArvind Yadav <arvind.yadav.cs@gmail.com>
Date2017-08-17 13:40 +0200
Subject[PATCH 00/30] constify input serio_device_id
Message-ID<ufrjz-4bT-9@gated-at.bofh.it>
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.

Arvind Yadav (30):
  [PATCH 01/30] Input: iforce: constify serio_device_id
  [PATCH 02/30] Input: magellan: constify serio_device_id
  [PATCH 03/30] Input: spaceball: constify serio_device_id
  [PATCH 04/30] Input: spaceorb: constify serio_device_id
  [PATCH 05/30] Input: stinger: constify serio_device_id
  [PATCH 06/30] Input: twidjoy: constify serio_device_id
  [PATCH 07/30] Input: warrior: constify serio_device_id
  [PATCH 08/30] Input: zhenhua: constify serio_device_id
  [PATCH 09/30] Input: iatkbd: constify serio_device_id
  [PATCH 10/30] Input: hil_kbd: constify serio_device_id
  [PATCH 11/30] Input: lkkbd: constify serio_device_id
  [PATCH 12/30] Input: newtonkbd: constify serio_device_id
  [PATCH 13/30] Input: stowaway: constify serio_device_id
  [PATCH 14/30] Input: sunkbd: constify serio_device_id
  [PATCH 15/30] Input: xtkbd: constify serio_device_id
  [PATCH 16/30] Input: serio: constify serio_device_id
  [PATCH 17/30] Input: wacom_serial4: constify serio_device_id
  [PATCH 18/30] Input: dynapro: constify serio_device_id
  [PATCH 19/30] Input: elo: constify serio_device_id
  [PATCH 20/30] Input: fujitsu_ts: constify serio_device_id
  [PATCH 21/30] Input: gunze: constify serio_device_id
  [PATCH 22/30] Input: hampshire: constify serio_device_id
  [PATCH 23/30] Input: inexio: constify serio_device_id
  [PATCH 24/30] Input: mtouch: constify serio_device_id
  [PATCH 25/30] Input: penmount: constify serio_device_id
  [PATCH 26/30] Input: touchit213: constify serio_device_id
  [PATCH 27/30] Input: touchright: constify serio_device_id
  [PATCH 28/30] Input: touchwin: constify serio_device_id
  [PATCH 29/30] Input: tsc40: constify serio_device_id
  [PATCH 30/30] Input: wacom_w8001: constify serio_device_id

 drivers/input/joystick/iforce/iforce-serio.c | 2 +-
 drivers/input/joystick/magellan.c            | 2 +-
 drivers/input/joystick/spaceball.c           | 2 +-
 drivers/input/joystick/spaceorb.c            | 2 +-
 drivers/input/joystick/stinger.c             | 2 +-
 drivers/input/joystick/twidjoy.c             | 2 +-
 drivers/input/joystick/warrior.c             | 2 +-
 drivers/input/joystick/zhenhua.c             | 2 +-
 drivers/input/keyboard/atkbd.c               | 2 +-
 drivers/input/keyboard/hil_kbd.c             | 2 +-
 drivers/input/keyboard/lkkbd.c               | 2 +-
 drivers/input/keyboard/newtonkbd.c           | 2 +-
 drivers/input/keyboard/stowaway.c            | 2 +-
 drivers/input/keyboard/sunkbd.c              | 2 +-
 drivers/input/keyboard/xtkbd.c               | 2 +-
 drivers/input/serio/serio_raw.c              | 2 +-
 drivers/input/tablet/wacom_serial4.c         | 2 +-
 drivers/input/touchscreen/dynapro.c          | 2 +-
 drivers/input/touchscreen/elo.c              | 2 +-
 drivers/input/touchscreen/fujitsu_ts.c       | 2 +-
 drivers/input/touchscreen/gunze.c            | 2 +-
 drivers/input/touchscreen/hampshire.c        | 2 +-
 drivers/input/touchscreen/inexio.c           | 2 +-
 drivers/input/touchscreen/mtouch.c           | 2 +-
 drivers/input/touchscreen/penmount.c         | 2 +-
 drivers/input/touchscreen/touchit213.c       | 2 +-
 drivers/input/touchscreen/touchright.c       | 2 +-
 drivers/input/touchscreen/touchwin.c         | 2 +-
 drivers/input/touchscreen/tsc40.c            | 2 +-
 drivers/input/touchscreen/wacom_w8001.c      | 2 +-
 30 files changed, 30 insertions(+), 30 deletions(-)

-- 
2.7.4

[toc] | [next] | [standalone]


#1713843 — [PATCH 02/30] Input: magellan: constify serio_device_id

FromArvind Yadav <arvind.yadav.cs@gmail.com>
Date2017-08-17 13:40 +0200
Subject[PATCH 02/30] Input: magellan: constify serio_device_id
Message-ID<ufrjA-4bT-23@gated-at.bofh.it>
In reply to#1713842
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/joystick/magellan.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/input/joystick/magellan.c b/drivers/input/joystick/magellan.c
index c5358ba..a9d0e3e 100644
--- a/drivers/input/joystick/magellan.c
+++ b/drivers/input/joystick/magellan.c
@@ -198,7 +198,7 @@ static int magellan_connect(struct serio *serio, struct serio_driver *drv)
  * The serio driver structure.
  */
 
-static struct serio_device_id magellan_serio_ids[] = {
+static const struct serio_device_id magellan_serio_ids[] = {
 	{
 		.type	= SERIO_RS232,
 		.proto	= SERIO_MAGELLAN,
-- 
2.7.4

[toc] | [prev] | [next] | [standalone]


#1713844 — [PATCH 09/30] Input: iatkbd: constify serio_device_id

FromArvind Yadav <arvind.yadav.cs@gmail.com>
Date2017-08-17 13:50 +0200
Subject[PATCH 09/30] Input: iatkbd: constify serio_device_id
Message-ID<ufrtf-4hy-1@gated-at.bofh.it>
In reply to#1713842
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/keyboard/atkbd.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/input/keyboard/atkbd.c b/drivers/input/keyboard/atkbd.c
index ec876b5..7e75835 100644
--- a/drivers/input/keyboard/atkbd.c
+++ b/drivers/input/keyboard/atkbd.c
@@ -1270,7 +1270,7 @@ static int atkbd_reconnect(struct serio *serio)
 	return retval;
 }
 
-static struct serio_device_id atkbd_serio_ids[] = {
+static const struct serio_device_id atkbd_serio_ids[] = {
 	{
 		.type	= SERIO_8042,
 		.proto	= SERIO_ANY,
-- 
2.7.4

[toc] | [prev] | [next] | [standalone]


#1713845 — [PATCH 11/30] Input: lkkbd: constify serio_device_id

FromArvind Yadav <arvind.yadav.cs@gmail.com>
Date2017-08-17 13:50 +0200
Subject[PATCH 11/30] Input: lkkbd: constify serio_device_id
Message-ID<ufrtf-4hy-3@gated-at.bofh.it>
In reply to#1713842
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/keyboard/lkkbd.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/input/keyboard/lkkbd.c b/drivers/input/keyboard/lkkbd.c
index 9fcd9f1..471d538 100644
--- a/drivers/input/keyboard/lkkbd.c
+++ b/drivers/input/keyboard/lkkbd.c
@@ -707,7 +707,7 @@ static void lkkbd_disconnect(struct serio *serio)
 	kfree(lk);
 }
 
-static struct serio_device_id lkkbd_serio_ids[] = {
+static const struct serio_device_id lkkbd_serio_ids[] = {
 	{
 		.type	= SERIO_RS232,
 		.proto	= SERIO_LKKBD,
-- 
2.7.4

[toc] | [prev] | [next] | [standalone]


#1713846 — [PATCH 25/30] Input: penmount: constify serio_device_id

FromArvind Yadav <arvind.yadav.cs@gmail.com>
Date2017-08-17 13:50 +0200
Subject[PATCH 25/30] Input: penmount: constify serio_device_id
Message-ID<ufrtf-4hy-7@gated-at.bofh.it>
In reply to#1713842
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/penmount.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/input/touchscreen/penmount.c b/drivers/input/touchscreen/penmount.c
index 417d873..6e6d7fd 100644
--- a/drivers/input/touchscreen/penmount.c
+++ b/drivers/input/touchscreen/penmount.c
@@ -293,7 +293,7 @@ static int pm_connect(struct serio *serio, struct serio_driver *drv)
  * The serio driver structure.
  */
 
-static struct serio_device_id pm_serio_ids[] = {
+static const struct serio_device_id pm_serio_ids[] = {
 	{
 		.type	= SERIO_RS232,
 		.proto	= SERIO_PENMOUNT,
-- 
2.7.4

[toc] | [prev] | [next] | [standalone]


#1713848 — [PATCH 18/30] Input: dynapro: constify serio_device_id

FromArvind Yadav <arvind.yadav.cs@gmail.com>
Date2017-08-17 13:50 +0200
Subject[PATCH 18/30] Input: dynapro: constify serio_device_id
Message-ID<ufrtg-4hy-13@gated-at.bofh.it>
In reply to#1713842
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/dynapro.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/input/touchscreen/dynapro.c b/drivers/input/touchscreen/dynapro.c
index 86237a9..5b1b66f 100644
--- a/drivers/input/touchscreen/dynapro.c
+++ b/drivers/input/touchscreen/dynapro.c
@@ -164,7 +164,7 @@ static int dynapro_connect(struct serio *serio, struct serio_driver *drv)
  * The serio driver structure.
  */
 
-static struct serio_device_id dynapro_serio_ids[] = {
+static const struct serio_device_id dynapro_serio_ids[] = {
 	{
 		.type	= SERIO_RS232,
 		.proto	= SERIO_DYNAPRO,
-- 
2.7.4

[toc] | [prev] | [next] | [standalone]


#1713849 — [PATCH 03/30] Input: spaceball: constify serio_device_id

FromArvind Yadav <arvind.yadav.cs@gmail.com>
Date2017-08-17 13:50 +0200
Subject[PATCH 03/30] Input: spaceball: constify serio_device_id
Message-ID<ufrtg-4hy-17@gated-at.bofh.it>
In reply to#1713842
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/joystick/spaceball.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/input/joystick/spaceball.c b/drivers/input/joystick/spaceball.c
index f4445a4..e9712a1 100644
--- a/drivers/input/joystick/spaceball.c
+++ b/drivers/input/joystick/spaceball.c
@@ -272,7 +272,7 @@ static int spaceball_connect(struct serio *serio, struct serio_driver *drv)
  * The serio driver structure.
  */
 
-static struct serio_device_id spaceball_serio_ids[] = {
+static const struct serio_device_id spaceball_serio_ids[] = {
 	{
 		.type	= SERIO_RS232,
 		.proto	= SERIO_SPACEBALL,
-- 
2.7.4

[toc] | [prev] | [next] | [standalone]


#1713850 — [PATCH 22/30] Input: hampshire: constify serio_device_id

FromArvind Yadav <arvind.yadav.cs@gmail.com>
Date2017-08-17 13:50 +0200
Subject[PATCH 22/30] Input: hampshire: constify serio_device_id
Message-ID<ufrtg-4hy-19@gated-at.bofh.it>
In reply to#1713842
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/hampshire.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/input/touchscreen/hampshire.c b/drivers/input/touchscreen/hampshire.c
index ecb1e0e..eb052d5 100644
--- a/drivers/input/touchscreen/hampshire.c
+++ b/drivers/input/touchscreen/hampshire.c
@@ -163,7 +163,7 @@ static int hampshire_connect(struct serio *serio, struct serio_driver *drv)
  * The serio driver structure.
  */
 
-static struct serio_device_id hampshire_serio_ids[] = {
+static const struct serio_device_id hampshire_serio_ids[] = {
 	{
 		.type	= SERIO_RS232,
 		.proto	= SERIO_HAMPSHIRE,
-- 
2.7.4

[toc] | [prev] | [next] | [standalone]


#1713851 — [PATCH 26/30] Input: touchit213: constify serio_device_id

FromArvind Yadav <arvind.yadav.cs@gmail.com>
Date2017-08-17 13:50 +0200
Subject[PATCH 26/30] Input: touchit213: constify serio_device_id
Message-ID<ufrtg-4hy-15@gated-at.bofh.it>
In reply to#1713842
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/touchit213.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/input/touchscreen/touchit213.c b/drivers/input/touchscreen/touchit213.c
index c27cf8f..98a1669 100644
--- a/drivers/input/touchscreen/touchit213.c
+++ b/drivers/input/touchscreen/touchit213.c
@@ -192,7 +192,7 @@ static int touchit213_connect(struct serio *serio, struct serio_driver *drv)
  * The serio driver structure.
  */
 
-static struct serio_device_id touchit213_serio_ids[] = {
+static const struct serio_device_id touchit213_serio_ids[] = {
 	{
 		.type	= SERIO_RS232,
 		.proto	= SERIO_TOUCHIT213,
-- 
2.7.4

[toc] | [prev] | [next] | [standalone]


#1713852 — [PATCH 12/30] Input: newtonkbd: constify serio_device_id

FromArvind Yadav <arvind.yadav.cs@gmail.com>
Date2017-08-17 13:50 +0200
Subject[PATCH 12/30] Input: newtonkbd: constify serio_device_id
Message-ID<ufrtg-4hy-21@gated-at.bofh.it>
In reply to#1713842
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/keyboard/newtonkbd.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/input/keyboard/newtonkbd.c b/drivers/input/keyboard/newtonkbd.c
index 20f0443..fb9b8e2 100644
--- a/drivers/input/keyboard/newtonkbd.c
+++ b/drivers/input/keyboard/newtonkbd.c
@@ -142,7 +142,7 @@ static void nkbd_disconnect(struct serio *serio)
 	kfree(nkbd);
 }
 
-static struct serio_device_id nkbd_serio_ids[] = {
+static const struct serio_device_id nkbd_serio_ids[] = {
 	{
 		.type	= SERIO_RS232,
 		.proto	= SERIO_NEWTON,
-- 
2.7.4

[toc] | [prev] | [next] | [standalone]


#1713853 — [PATCH 27/30] Input: touchright: constify serio_device_id

FromArvind Yadav <arvind.yadav.cs@gmail.com>
Date2017-08-17 13:50 +0200
Subject[PATCH 27/30] Input: touchright: constify serio_device_id
Message-ID<ufrtg-4hy-23@gated-at.bofh.it>
In reply to#1713842
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/touchright.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/input/touchscreen/touchright.c b/drivers/input/touchscreen/touchright.c
index 4000e52..45c325c 100644
--- a/drivers/input/touchscreen/touchright.c
+++ b/drivers/input/touchscreen/touchright.c
@@ -152,7 +152,7 @@ static int tr_connect(struct serio *serio, struct serio_driver *drv)
  * The serio driver structure.
  */
 
-static struct serio_device_id tr_serio_ids[] = {
+static const struct serio_device_id tr_serio_ids[] = {
 	{
 		.type	= SERIO_RS232,
 		.proto	= SERIO_TOUCHRIGHT,
-- 
2.7.4

[toc] | [prev] | [next] | [standalone]


#1713854 — [PATCH 08/30] Input: zhenhua: constify serio_device_id

FromArvind Yadav <arvind.yadav.cs@gmail.com>
Date2017-08-17 13:50 +0200
Subject[PATCH 08/30] Input: zhenhua: constify serio_device_id
Message-ID<ufrtg-4hy-25@gated-at.bofh.it>
In reply to#1713842
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/joystick/zhenhua.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/input/joystick/zhenhua.c b/drivers/input/joystick/zhenhua.c
index 4a8258b..5c6d5de 100644
--- a/drivers/input/joystick/zhenhua.c
+++ b/drivers/input/joystick/zhenhua.c
@@ -192,7 +192,7 @@ static int zhenhua_connect(struct serio *serio, struct serio_driver *drv)
  * The serio driver structure.
  */
 
-static struct serio_device_id zhenhua_serio_ids[] = {
+static const struct serio_device_id zhenhua_serio_ids[] = {
 	{
 		.type	= SERIO_RS232,
 		.proto	= SERIO_ZHENHUA,
-- 
2.7.4

[toc] | [prev] | [next] | [standalone]


#1713855 — [PATCH 07/30] Input: warrior: constify serio_device_id

FromArvind Yadav <arvind.yadav.cs@gmail.com>
Date2017-08-17 13:50 +0200
Subject[PATCH 07/30] Input: warrior: constify serio_device_id
Message-ID<ufrtg-4hy-31@gated-at.bofh.it>
In reply to#1713842
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/joystick/warrior.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/input/joystick/warrior.c b/drivers/input/joystick/warrior.c
index e13a914..ef5391b 100644
--- a/drivers/input/joystick/warrior.c
+++ b/drivers/input/joystick/warrior.c
@@ -193,7 +193,7 @@ static int warrior_connect(struct serio *serio, struct serio_driver *drv)
  * The serio driver structure.
  */
 
-static struct serio_device_id warrior_serio_ids[] = {
+static const struct serio_device_id warrior_serio_ids[] = {
 	{
 		.type	= SERIO_RS232,
 		.proto	= SERIO_WARRIOR,
-- 
2.7.4

[toc] | [prev] | [next] | [standalone]


#1713856 — [PATCH 17/30] Input: wacom_serial4: constify serio_device_id

FromArvind Yadav <arvind.yadav.cs@gmail.com>
Date2017-08-17 13:50 +0200
Subject[PATCH 17/30] Input: wacom_serial4: constify serio_device_id
Message-ID<ufrtg-4hy-29@gated-at.bofh.it>
In reply to#1713842
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

[toc] | [prev] | [next] | [standalone]


#1713857 — [PATCH 13/30] Input: stowaway: constify serio_device_id

FromArvind Yadav <arvind.yadav.cs@gmail.com>
Date2017-08-17 13:50 +0200
Subject[PATCH 13/30] Input: stowaway: constify serio_device_id
Message-ID<ufrtg-4hy-35@gated-at.bofh.it>
In reply to#1713842
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/keyboard/stowaway.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/input/keyboard/stowaway.c b/drivers/input/keyboard/stowaway.c
index a6e0d56..8b6de9a 100644
--- a/drivers/input/keyboard/stowaway.c
+++ b/drivers/input/keyboard/stowaway.c
@@ -146,7 +146,7 @@ static void skbd_disconnect(struct serio *serio)
 	kfree(skbd);
 }
 
-static struct serio_device_id skbd_serio_ids[] = {
+static const struct serio_device_id skbd_serio_ids[] = {
 	{
 		.type	= SERIO_RS232,
 		.proto	= SERIO_STOWAWAY,
-- 
2.7.4

[toc] | [prev] | [next] | [standalone]


#1713858 — [PATCH 16/30] Input: serio: constify serio_device_id

FromArvind Yadav <arvind.yadav.cs@gmail.com>
Date2017-08-17 13:50 +0200
Subject[PATCH 16/30] Input: serio: constify serio_device_id
Message-ID<ufrtg-4hy-33@gated-at.bofh.it>
In reply to#1713842
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/serio/serio_raw.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/input/serio/serio_raw.c b/drivers/input/serio/serio_raw.c
index 71ef5d6..516f9fe 100644
--- a/drivers/input/serio/serio_raw.c
+++ b/drivers/input/serio/serio_raw.c
@@ -410,7 +410,7 @@ static void serio_raw_disconnect(struct serio *serio)
 	serio_set_drvdata(serio, NULL);
 }
 
-static struct serio_device_id serio_raw_serio_ids[] = {
+static const struct serio_device_id serio_raw_serio_ids[] = {
 	{
 		.type	= SERIO_8042,
 		.proto	= SERIO_ANY,
-- 
2.7.4

[toc] | [prev] | [next] | [standalone]


#1713859 — [PATCH 20/30] Input: fujitsu_ts: constify serio_device_id

FromArvind Yadav <arvind.yadav.cs@gmail.com>
Date2017-08-17 13:50 +0200
Subject[PATCH 20/30] Input: fujitsu_ts: constify serio_device_id
Message-ID<ufrth-4hy-37@gated-at.bofh.it>
In reply to#1713842
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

[toc] | [prev] | [next] | [standalone]


#1713860 — [PATCH 24/30] Input: mtouch: constify serio_device_id

FromArvind Yadav <arvind.yadav.cs@gmail.com>
Date2017-08-17 13:50 +0200
Subject[PATCH 24/30] Input: mtouch: constify serio_device_id
Message-ID<ufrth-4hy-39@gated-at.bofh.it>
In reply to#1713842
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/mtouch.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/input/touchscreen/mtouch.c b/drivers/input/touchscreen/mtouch.c
index 9b5552a..a3707fa 100644
--- a/drivers/input/touchscreen/mtouch.c
+++ b/drivers/input/touchscreen/mtouch.c
@@ -178,7 +178,7 @@ static int mtouch_connect(struct serio *serio, struct serio_driver *drv)
  * The serio driver structure.
  */
 
-static struct serio_device_id mtouch_serio_ids[] = {
+static const struct serio_device_id mtouch_serio_ids[] = {
 	{
 		.type	= SERIO_RS232,
 		.proto	= SERIO_MICROTOUCH,
-- 
2.7.4

[toc] | [prev] | [next] | [standalone]


#1713861 — [PATCH 01/30] Input: iforce: constify serio_device_id

FromArvind Yadav <arvind.yadav.cs@gmail.com>
Date2017-08-17 13:50 +0200
Subject[PATCH 01/30] Input: iforce: constify serio_device_id
Message-ID<ufrth-4hy-45@gated-at.bofh.it>
In reply to#1713842
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/joystick/iforce/iforce-serio.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/input/joystick/iforce/iforce-serio.c b/drivers/input/joystick/iforce/iforce-serio.c
index 46d5041..154e827 100644
--- a/drivers/input/joystick/iforce/iforce-serio.c
+++ b/drivers/input/joystick/iforce/iforce-serio.c
@@ -164,7 +164,7 @@ static void iforce_serio_disconnect(struct serio *serio)
 	kfree(iforce);
 }
 
-static struct serio_device_id iforce_serio_ids[] = {
+static const struct serio_device_id iforce_serio_ids[] = {
 	{
 		.type	= SERIO_RS232,
 		.proto	= SERIO_IFORCE,
-- 
2.7.4

[toc] | [prev] | [next] | [standalone]


#1713862 — [PATCH 14/30] Input: sunkbd: constify serio_device_id

FromArvind Yadav <arvind.yadav.cs@gmail.com>
Date2017-08-17 13:50 +0200
Subject[PATCH 14/30] Input: sunkbd: constify serio_device_id
Message-ID<ufrth-4hy-41@gated-at.bofh.it>
In reply to#1713842
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/keyboard/sunkbd.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/input/keyboard/sunkbd.c b/drivers/input/keyboard/sunkbd.c
index dc6bb9d..c95707e 100644
--- a/drivers/input/keyboard/sunkbd.c
+++ b/drivers/input/keyboard/sunkbd.c
@@ -339,7 +339,7 @@ static void sunkbd_disconnect(struct serio *serio)
 	kfree(sunkbd);
 }
 
-static struct serio_device_id sunkbd_serio_ids[] = {
+static const struct serio_device_id sunkbd_serio_ids[] = {
 	{
 		.type	= SERIO_RS232,
 		.proto	= SERIO_SUNKBD,
-- 
2.7.4

[toc] | [prev] | [next] | [standalone]


Page 1 of 2  [1] 2  Next page →

Back to top | Article view | linux.kernel


csiph-web