summaryrefslogtreecommitdiff
path: root/drivers/gpu/msm/kgsl_iommu.c
diff options
context:
space:
mode:
authorJordan Crouse <jcrouse@codeaurora.org>2016-01-25 16:01:57 -0700
committerDavid Keitel <dkeitel@codeaurora.org>2016-03-23 21:18:40 -0700
commit11d4029da91508ea4bc4ca66ea5bd3c333ef591b (patch)
tree0f927892f515954ab44402c3b100a82b8d8165a6 /drivers/gpu/msm/kgsl_iommu.c
parenta1385afa7be81030c9bf9e6ad8d45f6b4d5fcc5b (diff)
msm: kgsl: Add KGSL_RB_DEVICE macro
The ringbuffer structures are static members of struct adreno_device which means that they are permanently associated with a specific adreno device and by extension a struct kgsl_device too. The upshot is that we can use macro math to derive the adreno device from a ringbuffer pointer and get rid of the device shortcut in the ringbuffer struct. This also gives us a chance to clean up how functions use the ringbuffer and adreno_device structs to limit unnessesary dereferencing. Change-Id: Ic0dedbad909ef71e99cd3319713cee38fb1700f0 Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org>
Diffstat (limited to 'drivers/gpu/msm/kgsl_iommu.c')
0 files changed, 0 insertions, 0 deletions