From: Andy Shevchenko Date: Thu, 15 Jul 2021 14:41:52 +0000 (+0300) Subject: auxdisplay: charlcd: Drop unneeded initializers and switch to C99 style X-Git-Tag: v5.15~274^2~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ac8c8fa0a8c3a7bc0a9a9cc44ab3650d98662754;p=platform%2Fkernel%2Flinux-starfive.git auxdisplay: charlcd: Drop unneeded initializers and switch to C99 style For structure initializers the fields are 0 (or NULL) by default, so there is no need to fill them explicitly. Besides that, much easier to read when initializers use C99 style. Hence, convert to C99 style as well. Signed-off-by: Andy Shevchenko Acked-by: Willy Tarreau Signed-off-by: Miguel Ojeda --- diff --git a/drivers/auxdisplay/charlcd.c b/drivers/auxdisplay/charlcd.c index 24fd6f3..304accd 100644 --- a/drivers/auxdisplay/charlcd.c +++ b/drivers/auxdisplay/charlcd.c @@ -637,9 +637,7 @@ static int panel_notify_sys(struct notifier_block *this, unsigned long code, } static struct notifier_block panel_notifier = { - panel_notify_sys, - NULL, - 0 + .notifier_call = panel_notify_sys, }; int charlcd_register(struct charlcd *lcd)