]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
drm/panel: simple: add a macro for defining display modes in a simpler and less error...
authorLothar Waßmann <LW@KARO-electronics.de>
Thu, 14 Sep 2017 09:54:18 +0000 (11:54 +0200)
committerLothar Waßmann <LW@KARO-electronics.de>
Thu, 14 Sep 2017 09:54:18 +0000 (11:54 +0200)
commit57d7dec996024838ce0dd4c7052a07e9634773c5
tree141cd7a13b193920511f5ba4295db429df79715a
parent47d2f3cc737ba183a27901faf4048f422aa7c010
drm/panel: simple: add a macro for defining display modes in a simpler and less error prone way

Create a macro that eases the definition of display mode parameters by
accecpting the parameters:
freq, hactive, hfront-porch, hsynclen, hback-porch,
vactive, vfront-porch, vsynclen, vback-porch, vrefresh
that can be usually directly taken from an LCD datasheet.

Put the calculations that are now open coded repeating the same
parameters multiple times into the macro expansion.
drivers/gpu/drm/panel/panel-simple.c