]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
drm/tegra: Use u64_to_user_ptr helper
authorMikko Perttunen <mperttunen@nvidia.com>
Thu, 28 Sep 2017 12:50:44 +0000 (15:50 +0300)
committerThierry Reding <treding@nvidia.com>
Fri, 20 Oct 2017 12:19:52 +0000 (14:19 +0200)
commita176c67d71508761ec9d66a2d9a4eabb8d6873fd
tree736f11a9bd7f36839af0c01fdfcf54b9c313a6bd
parent45bd862c2846414371bc9b5d31be7c5df252c289
drm/tegra: Use u64_to_user_ptr helper

Use the u64_to_user_ptr helper macro to cast IOCTL argument u64 values
to user pointers instead of writing out the cast manually. Also do
some other cleanup with user pointers to make them stand out more
and look cleaner.

Signed-off-by: Mikko Perttunen <mperttunen@nvidia.com>
Reviewed-by: Dmitry Osipenko <digetx@gmail.com>
Tested-by: Dmitry Osipenko <digetx@gmail.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
drivers/gpu/drm/tegra/drm.c