uvc-gadget: Use macros from tools.h
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Mon, 21 May 2018 18:43:21 +0000 (21:43 +0300)
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Mon, 21 May 2018 18:43:21 +0000 (21:43 +0300)
commitb28524b5eff7d61670a2f1794ea316dc66392315
tree588488dce2206abf8195c19a21ba430740d3c7b9
parent349679083d1f1053ee79cc933e0e41c48ce05fb9
uvc-gadget: Use macros from tools.h

The tools.h header defines clamp and ARRAY_SIZE macros. Use the header
to replace the private implementation.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
uvc-gadget.c