OSDN Git Service

auxdisplay: charlcd: simplify init message display
authorMans Rullgard <mans@mansr.com>
Fri, 1 Mar 2019 18:48:15 +0000 (18:48 +0000)
committerMiguel Ojeda <miguel.ojeda.sandonis@gmail.com>
Sun, 17 Mar 2019 07:48:39 +0000 (08:48 +0100)
commitc9171722459fdeab0f27790ae04c0c5a4ae5a9b2
treec24ee34448fe1fe318e78d47f49a7f275414773d
parent24c764abfd0d4b6e8e33c3818b668edbb4936d6f
auxdisplay: charlcd: simplify init message display

If CONFIG_PANEL_CHANGE_MESSAGE is set, CONFIG_PANEL_BOOT_MESSAGE will
also be defined, so the double ifdef is pointless.  Simplify the code
further by using an intermediate macro rather duplicating most of the
line.

Signed-off-by: Mans Rullgard <mans@mansr.com>
Signed-off-by: Miguel Ojeda <miguel.ojeda.sandonis@gmail.com>
drivers/auxdisplay/charlcd.c