OSDN Git Service

platform/x86: wmi: Drop forward declaration of static functions
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Mon, 19 Sep 2022 12:22:13 +0000 (14:22 +0200)
committerHans de Goede <hdegoede@redhat.com>
Mon, 19 Sep 2022 12:47:34 +0000 (14:47 +0200)
commitc710765a4742337e40199403acde2fdd3189183d
tree174f1da1245628d1d35b9bfad32a32b8452f987a
parent8755e675a88680e15cfcc447b8d2de41e7fe8071
platform/x86: wmi: Drop forward declaration of static functions

Usually it's not necessary to declare static functions if the symbols are
in the right order. Moving the definition of acpi_wmi_driver down in the
compilation unit allows to drop two such declarations.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Link: https://lore.kernel.org/r/20220919122213.852322-1-u.kleine-koenig@pengutronix.de
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
drivers/platform/x86/wmi.c