fbdev: imxfb: warn about invalid left/right margin
authorMartin Kaiser <martin@kaiser.cx>
Wed, 28 Jun 2023 13:24:37 +0000 (15:24 +0200)
committerHelge Deller <deller@gmx.de>
Tue, 11 Jul 2023 05:22:45 +0000 (07:22 +0200)
commit4e47382fbca916d7db95cbf9e2d7ca2e9d1ca3fe
treea3af51e0ff195d806eb51fdfa59035b5ee9f6314
parent06c2afb862f9da8dc5efa4b6076a0e48c3fbaaa5
fbdev: imxfb: warn about invalid left/right margin

Warn about invalid var->left_margin or var->right_margin. Their values
are read from the device tree.

We store var->left_margin-3 and var->right_margin-1 in register
fields. These fields should be >= 0.

Fixes: 7e8549bcee00 ("imxfb: Fix margin settings")
Signed-off-by: Martin Kaiser <martin@kaiser.cx>
Signed-off-by: Helge Deller <deller@gmx.de>
drivers/video/fbdev/imxfb.c