From: Oded Gabbay Date: Mon, 29 Dec 2014 12:20:05 +0000 (+0200) Subject: drm/amdkfd: rewrite kfd_ioctl() according to drm_ioctl() X-Git-Tag: omap-for-v4.1/prcm-dts-mfd-syscon-fix~306^2^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=76baee6c733bfef30fcf86cbd121e336b839e408;p=pandora-kernel.git drm/amdkfd: rewrite kfd_ioctl() according to drm_ioctl() This patch changes kfd_ioctl() to be very similar to drm_ioctl(). The patch defines an array of amdkfd_ioctls, which maps IOCTL definition to the ioctl function. The kfd_ioctl() uses that mapping to call the appropriate ioctl function, through a function pointer. This patch also declares a new typedef for the ioctl function pointer. v2: Renamed KFD_COMMAND_(START|END) to AMDKFD_... Signed-off-by: Oded Gabbay Acked-by: Christian König --- Reading git-diff-tree failed