mirror of
https://github.com/torvalds/linux.git
synced 2026-05-23 22:52:19 +02:00
platform/x86: lenovo-yoga-tab2-pro-1380-fastcharger: Make symbol static
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: b2ed33e8d4 ("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>
This commit is contained in:
parent
61250669ea
commit
886ca11a0c
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user