]> git.baikalelectronics.ru Git - kernel.git/commit
usb: gadget: ncm: make global variable ndp*_opts read only
authorSebastian Andrzej Siewior <bigeasy@linutronix.de>
Thu, 22 Nov 2012 18:50:34 +0000 (19:50 +0100)
committerFelipe Balbi <balbi@ti.com>
Thu, 10 Jan 2013 10:25:12 +0000 (12:25 +0200)
commit412ad23bf9ec841652f1dc428db11f028bf4756a
tree3e2793f82b6a856b5337c5a7adb1aef2ddbf3dde
parent73f760d4173b73103b8695c4bffaa3352e7f2414
usb: gadget: ncm: make global variable ndp*_opts read only

There is ndp16_opts and ndp32_opts which are both global and only one
member is ever written. This patch makes the variable read-only and
moves the one member that is ever written into the private struct f_ncm.

Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/gadget/f_ncm.c