platform/x86: lenovo-yoga-tab2-pro-1380-fastcharger: Make symbol static
authorIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
Tue, 4 Mar 2025 16:06:38 +0000 (18:06 +0200)
committerIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
Wed, 5 Mar 2025 11:57:10 +0000 (13:57 +0200)
Sparse reports:

lenovo-yoga-tab2-pro-1380-fastcharger.c:222:29: warning: symbol
'yt2_1380_fc_serdev_driver' was not declared. Should it be static?

Fix that by making the symbol static.

Fixes: b2ed33e8d486a ("platform/x86: Add  lenovo-yoga-tab2-pro-1380-fastcharger driver")
Reviewed-by: Mario Limonciello <mario.limonciello@amd.com>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Link: https://lore.kernel.org/r/20250304160639.4295-1-ilpo.jarvinen@linux.intel.com
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
drivers/platform/x86/lenovo-yoga-tab2-pro-1380-fastcharger.c

index a96b215cd2c5ea2edb860cdc4bf661a45fe353ba..25933cd018d172d99aeefce252205e513c708864 100644 (file)
@@ -219,7 +219,7 @@ static int yt2_1380_fc_serdev_probe(struct serdev_device *serdev)
        return 0;
 }
 
-struct serdev_device_driver yt2_1380_fc_serdev_driver = {
+static struct serdev_device_driver yt2_1380_fc_serdev_driver = {
        .probe = yt2_1380_fc_serdev_probe,
        .driver = {
                .name = KBUILD_MODNAME,