gpu: host1x: firewall: Refactor register check
authorThierry Reding <treding@nvidia.com>
Thu, 10 Oct 2013 08:24:04 +0000 (10:24 +0200)
committerThierry Reding <treding@nvidia.com>
Thu, 31 Oct 2013 08:20:08 +0000 (09:20 +0100)
commitd77563ff5615f730457ce2bc333053bbaca909b4
tree71b815bd4e796288ba3899b19185cf58c37abb13
parentd7fbcf477ac87c6d049fa72f21ee193b2d95f137
gpu: host1x: firewall: Refactor register check

The same code sequence is used in various places to validate a register
access in the command stream. This can be refactored into a separate
function.

Signed-off-by: Thierry Reding <treding@nvidia.com>
drivers/gpu/host1x/job.c