diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2019-01-18 15:20:12 +0300 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2019-01-28 16:24:53 +0300 |
commit | 21c76bd19e0c4b780474fe7cb285766edc9715f0 (patch) | |
tree | 20d6ed9dab3e5c50b2bc2c9ff4d9cc65ca80cc2b /drivers/gpu/drm/qxl/qxl_drv.h | |
parent | 90adda2ce898c7a76d1a55d4650ade8cc957e54f (diff) | |
download | linux-21c76bd19e0c4b780474fe7cb285766edc9715f0.tar.xz |
drm/qxl: use qxl_num_crtc directly
qdev->monitors_config->max_allowed is effectively set by the
qxl.num_heads module parameter, stored in the qxl_num_crtc variable.
Lets get rid of the indirection and use the variable qxl_num_crtc
directly. The kernel doesn't need to dereference pointers each time it
needs the value, and when reading the code you don't have to trace where
and why qdev->monitors_config->max_allowed is set.
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Acked-by: Noralf Trønnes <noralf@tronnes.org>
Link: http://patchwork.freedesktop.org/patch/msgid/20190118122020.27596-16-kraxel@redhat.com
Diffstat (limited to 'drivers/gpu/drm/qxl/qxl_drv.h')
0 files changed, 0 insertions, 0 deletions