Skip to content

Commit ac8c8fa

Browse files
andy-shevojeda
authored andcommitted
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 <andriy.shevchenko@linux.intel.com> Acked-by: Willy Tarreau <w@1wt.eu> Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
1 parent 333ff32 commit ac8c8fa

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

drivers/auxdisplay/charlcd.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -637,9 +637,7 @@ static int panel_notify_sys(struct notifier_block *this, unsigned long code,
637637
}
638638

639639
static struct notifier_block panel_notifier = {
640-
panel_notify_sys,
641-
NULL,
642-
0
640+
.notifier_call = panel_notify_sys,
643641
};
644642

645643
int charlcd_register(struct charlcd *lcd)

0 commit comments

Comments
 (0)