diff options
author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2021-07-15 17:41:52 +0300 |
---|---|---|
committer | Miguel Ojeda <ojeda@kernel.org> | 2021-07-16 07:42:35 +0200 |
commit | ac8c8fa0a8c3a7bc0a9a9cc44ab3650d98662754 (patch) | |
tree | a70d7c3245fd748f3098e61c08dc6277ccd9cd23 /drivers/auxdisplay/charlcd.c | |
parent | 333ff32d54cdefc2e479892e7f15ac91e026b57d (diff) | |
download | lwn-ac8c8fa0a8c3a7bc0a9a9cc44ab3650d98662754.tar.gz lwn-ac8c8fa0a8c3a7bc0a9a9cc44ab3650d98662754.zip |
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>
Diffstat (limited to 'drivers/auxdisplay/charlcd.c')
-rw-r--r-- | drivers/auxdisplay/charlcd.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/auxdisplay/charlcd.c b/drivers/auxdisplay/charlcd.c index 24fd6f369ebe..304accde365c 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) |