usb: gadget: do not use __constant_cpu_to_le16
authorSergey Senozhatsky <sergey.senozhatsky.work@gmail.com>
Thu, 14 Mar 2019 08:34:33 +0000 (17:34 +0900)
committerFelipe Balbi <felipe.balbi@linux.intel.com>
Fri, 3 May 2019 06:13:48 +0000 (09:13 +0300)
commit0c91ca478909d1d755b852970519126107478bfb
tree79820b644d17ef636247e7e523b69cde5cb26813
parent54f37f56631747075f1f9a2f0edf6ba405e3e66c
usb: gadget: do not use __constant_cpu_to_le16

A trivial patch.

cpu_to_le16() is capable enough to detect __builtin_constant_p()
and to use an appropriate compile time ___constant_swahbXX()
function.

So we can use cpu_to_le16() instead of __constant_cpu_to_le16().

Signed-off-by: Sergey Senozhatsky <sergey.senozhatsky@gmail.com>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
drivers/usb/gadget/function/f_uac1_legacy.c