Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

platform/x86: x86-android-tablets: make platform data be static

make lenovo_yoga_tab2_1380_bq24190_pdata and lenovo_yoga_tab2_1380_modules
to be static

Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202410160432.oJAPbrW9-lkp@intel.com/
Fixes: 3eee73ad42c3 ("platform/x86: x86-android-tablets: Add Lenovo Yoga Tablet 2 Pro 1380F/L data")
Signed-off-by: Pei Xiao <xiaopei01@kylinos.cn>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Link: https://lore.kernel.org/r/daafd1371e7e9946217712ce8720e29cd5c52f7a.1732161310.git.xiaopei01@kylinos.cn
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>

authored by

Pei Xiao and committed by
Ilpo Järvinen
6e0fb1bd b5dbb8e2

+2 -2
+2 -2
drivers/platform/x86/x86-android-tablets/lenovo.c
··· 601 601 .num_consumer_supplies = 1, 602 602 }; 603 603 604 - struct bq24190_platform_data lenovo_yoga_tab2_1380_bq24190_pdata = { 604 + static struct bq24190_platform_data lenovo_yoga_tab2_1380_bq24190_pdata = { 605 605 .regulator_init_data = &lenovo_yoga_tab2_1380_bq24190_vbus_init_data, 606 606 }; 607 607 ··· 726 726 }, 727 727 }; 728 728 729 - const char * const lenovo_yoga_tab2_1380_modules[] __initconst = { 729 + static const char * const lenovo_yoga_tab2_1380_modules[] __initconst = { 730 730 "bq24190_charger", /* For the Vbus regulator for lc824206xa */ 731 731 NULL 732 732 };