]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
drm/mgag200: fix a test in mga_vga_mode_valid()
authorDan Carpenter <dan.carpenter@oracle.com>
Thu, 25 Jan 2018 14:26:55 +0000 (17:26 +0300)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 30 Jan 2018 17:05:25 +0000 (18:05 +0100)
commit9eb8d7a93c81fdff68189979caff22a058891d15
tree1b0a70ab540b44b5eda515a92b9eec789e5450f8
parentb46310eecd9e23ec140ee2e1004f9335e776da82
drm/mgag200: fix a test in mga_vga_mode_valid()

The parentheses are in the wrong place here so we pass the bits per
pixel as zero.

Fixes: abbee6238775 ("drm/mgag200: Added resolution and bandwidth limits for various G200e products.")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: https://patchwork.freedesktop.org/patch/msgid/20180125142655.GA23885@mwanda
drivers/gpu/drm/mgag200/mgag200_mode.c