drm/panel/panel-sitronix-st7701: Clean up CMDnBKx selection
authorMarek Vasut <marex@denx.de>
Fri, 14 Oct 2022 23:10:42 +0000 (01:10 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Tue, 1 Nov 2022 22:10:23 +0000 (23:10 +0100)
commit49ee766b364edf7aca412d7418eb4cfe7ab1b1db
treee5995cd154eb1a5d386d6e368cb7880b7bebc7dd
parentc1cdee9b685a174fca849e1451c201a846a69318
drm/panel/panel-sitronix-st7701: Clean up CMDnBKx selection

There are two command register files, CMD1 and CMD2, where only the CMD2
contains additional register sub-files BK0..3 . Pull the register file
selection call into separate function instead of duplicating it all over
the driver. The CMD2BK2 file is undocumented in datasheet, and is used
for BIST. No functional change.

Signed-off-by: Marek Vasut <marex@denx.de>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20221014231042.468033-1-marex@denx.de
drivers/gpu/drm/panel/panel-sitronix-st7701.c