]> git.baikalelectronics.ru Git - kernel.git/commit
gpu: host1x: Use of_device_get_match_data()
authorThierry Reding <treding@nvidia.com>
Mon, 21 Aug 2017 16:08:42 +0000 (18:08 +0200)
committerThierry Reding <treding@nvidia.com>
Fri, 20 Oct 2017 12:19:50 +0000 (14:19 +0200)
commit8830166764184455c5ccace768461db6eca2b2bb
tree7c9d847e1656710cc69bc73e559a38ca88a8fe03
parentb888c937506147d5d77f24afb038b53ae6e1b4f2
gpu: host1x: Use of_device_get_match_data()

Avoid some boilerplate by calling of_device_get_match_data() instead of
open-coding the equivalent in the driver.

While at it, shuffle around some code to avoid unnecessary local
variables.

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