drm/prime: make the pages array optional for drm_prime_sg_to_page_addr_arrays
authorChristian König <ckoenig.leichtzumerken@gmail.com>
Tue, 27 Feb 2018 11:49:57 +0000 (12:49 +0100)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 6 Mar 2018 17:24:52 +0000 (12:24 -0500)
commit186ca446aea19e49d2e1433dd170c6e1c211a52a
tree69bea058938d1bbc36d21dcb6382fc0a9589729c
parent681066ec1d41e4b299146bada52cef846b323c04
drm/prime: make the pages array optional for drm_prime_sg_to_page_addr_arrays

Most of the time we only need the dma addresses.

Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Roger He <Hongbo.He@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20180227115000.4105-2-christian.koenig@amd.com
Link: https://patchwork.freedesktop.org/patch/msgid/20180227115000.4105-3-christian.koenig@amd.com
Link: https://patchwork.freedesktop.org/patch/msgid/20180227115000.4105-4-christian.koenig@amd.com
Link: https://patchwork.freedesktop.org/patch/msgid/20180227115000.4105-5-christian.koenig@amd.com
Link: https://patchwork.freedesktop.org/patch/msgid/BN6PR12MB18262C0DE9B5F07B9A42EAE7F2C60@BN6PR12MB1826.namprd12.prod.outlook.com
drivers/gpu/drm/drm_prime.c