]> git.baikalelectronics.ru Git - kernel.git/commit
drm/mediatek: Drop local dma_parms
authorRobin Murphy <robin.murphy@arm.com>
Thu, 3 Sep 2020 20:59:14 +0000 (21:59 +0100)
committerChun-Kuang Hu <chunkuang.hu@kernel.org>
Sun, 22 Nov 2020 00:12:50 +0000 (08:12 +0800)
commitdb86788c2f159cf8685e4f98c74bf95544ed2cdd
tree089836d9f391dc2d3ed40205e3a86567b40a6b91
parent8e2748b63a403b65c079606c9b0f0fba07d4d40c
drm/mediatek: Drop local dma_parms

Since commit 228149a112cf ("driver core: platform: Initialize dma_parms
for platform devices"), struct platform_device already provides a
dma_parms structure, so we can save allocating another one.

Also the DMA segment size is simply a size, not a bitmask.

Signed-off-by: Robin Murphy <robin.murphy@arm.com>
Signed-off-by: Chun-Kuang Hu <chunkuang.hu@kernel.org>
drivers/gpu/drm/mediatek/mtk_drm_drv.c
drivers/gpu/drm/mediatek/mtk_drm_drv.h