From: Dan Carpenter Date: Wed, 14 Jan 2015 21:06:35 +0000 (+0300) Subject: usb: gadget: uvc: cleanup UVCG_FRAME_ATTR macro X-Git-Tag: omap-for-v4.1/prcm-dts-mfd-syscon-fix~86^2^2~97 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3c4c733ca9e3f88e3107b6e23b9789bf7769e1f4;p=pandora-kernel.git usb: gadget: uvc: cleanup UVCG_FRAME_ATTR macro 1) Change "conv" an "vnoc" to "to_cpu_endian" to "to_little_endian". 2) No need to check the "limit" because that is already handled in kstrtoXX so delete that parameter along with the check. 3) By using a "bits" parameter, we can combine the "uxx" parameter and the "str2u" parameters. 4) The kstrtou##bits() conversion does not need to be done under the mutex so move it to the start of the function. 5) Change the name of "identity_conv" to "noop_conversion". Acked-by: Andrzej Pietrasiewicz Acked-by: Laurent Pinchart Signed-off-by: Dan Carpenter Signed-off-by: Felipe Balbi --- Reading git-diff-tree failed