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)
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>

No differences found