mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] platform/x86: x86-android-tablets: make platform data be static
       [not found] <202410160432.oJAPbrW9-lkp@intel.co>
@ 2024-11-21  3:55 ` Pei Xiao
  2024-11-21 12:32   ` Hans de Goede
  2024-12-02 17:12   ` Ilpo Järvinen
  0 siblings, 2 replies; 3+ messages in thread
From: Pei Xiao @ 2024-11-21  3:55 UTC (permalink / raw)
  To: hdegoede, platform-driver-x86, linux-kernel; +Cc: Pei Xiao, kernel test robot

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>
---
 drivers/platform/x86/x86-android-tablets/lenovo.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/platform/x86/x86-android-tablets/lenovo.c b/drivers/platform/x86/x86-android-tablets/lenovo.c
index ae087f1471c1..a60efbaf4817 100644
--- a/drivers/platform/x86/x86-android-tablets/lenovo.c
+++ b/drivers/platform/x86/x86-android-tablets/lenovo.c
@@ -601,7 +601,7 @@ static const struct regulator_init_data lenovo_yoga_tab2_1380_bq24190_vbus_init_
 	.num_consumer_supplies = 1,
 };
 
-struct bq24190_platform_data lenovo_yoga_tab2_1380_bq24190_pdata = {
+static struct bq24190_platform_data lenovo_yoga_tab2_1380_bq24190_pdata = {
 	.regulator_init_data = &lenovo_yoga_tab2_1380_bq24190_vbus_init_data,
 };
 
@@ -726,7 +726,7 @@ static const struct platform_device_info lenovo_yoga_tab2_1380_pdevs[] __initcon
 	},
 };
 
-const char * const lenovo_yoga_tab2_1380_modules[] __initconst = {
+static const char * const lenovo_yoga_tab2_1380_modules[] __initconst = {
 	"bq24190_charger",            /* For the Vbus regulator for lc824206xa */
 	NULL
 };
-- 
2.34.1


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] platform/x86: x86-android-tablets: make platform data be static
  2024-11-21  3:55 ` [PATCH] platform/x86: x86-android-tablets: make platform data be static Pei Xiao
@ 2024-11-21 12:32   ` Hans de Goede
  2024-12-02 17:12   ` Ilpo Järvinen
  1 sibling, 0 replies; 3+ messages in thread
From: Hans de Goede @ 2024-11-21 12:32 UTC (permalink / raw)
  To: Pei Xiao, platform-driver-x86, linux-kernel; +Cc: kernel test robot

Hi,

On 21-Nov-24 4:55 AM, Pei Xiao wrote:
> 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>

Thanks, patch looks good to me:

Reviewed-by: Hans de Goede <hdegoede@redhat.com>

Regards,

Hans




> ---
>  drivers/platform/x86/x86-android-tablets/lenovo.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/drivers/platform/x86/x86-android-tablets/lenovo.c b/drivers/platform/x86/x86-android-tablets/lenovo.c
> index ae087f1471c1..a60efbaf4817 100644
> --- a/drivers/platform/x86/x86-android-tablets/lenovo.c
> +++ b/drivers/platform/x86/x86-android-tablets/lenovo.c
> @@ -601,7 +601,7 @@ static const struct regulator_init_data lenovo_yoga_tab2_1380_bq24190_vbus_init_
>  	.num_consumer_supplies = 1,
>  };
>  
> -struct bq24190_platform_data lenovo_yoga_tab2_1380_bq24190_pdata = {
> +static struct bq24190_platform_data lenovo_yoga_tab2_1380_bq24190_pdata = {
>  	.regulator_init_data = &lenovo_yoga_tab2_1380_bq24190_vbus_init_data,
>  };
>  
> @@ -726,7 +726,7 @@ static const struct platform_device_info lenovo_yoga_tab2_1380_pdevs[] __initcon
>  	},
>  };
>  
> -const char * const lenovo_yoga_tab2_1380_modules[] __initconst = {
> +static const char * const lenovo_yoga_tab2_1380_modules[] __initconst = {
>  	"bq24190_charger",            /* For the Vbus regulator for lc824206xa */
>  	NULL
>  };


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] platform/x86: x86-android-tablets: make platform data be static
  2024-11-21  3:55 ` [PATCH] platform/x86: x86-android-tablets: make platform data be static Pei Xiao
  2024-11-21 12:32   ` Hans de Goede
@ 2024-12-02 17:12   ` Ilpo Järvinen
  1 sibling, 0 replies; 3+ messages in thread
From: Ilpo Järvinen @ 2024-12-02 17:12 UTC (permalink / raw)
  To: hdegoede, platform-driver-x86, linux-kernel, Pei Xiao; +Cc: kernel test robot

On Thu, 21 Nov 2024 11:55:34 +0800, Pei Xiao wrote:

> make lenovo_yoga_tab2_1380_bq24190_pdata and lenovo_yoga_tab2_1380_modules
> to be static
> 
> 


Thank you for your contribution, it has been applied to my local
review-ilpo-next branch. Note it will show up in the public
platform-drivers-x86/review-ilpo-next branch only once I've pushed my
local branch there, which might take a while.

The list of commits applied:
[1/1] platform/x86: x86-android-tablets: make platform data be static
      commit: 6e0fb1bdb71cf8078c8532617e565e3db22c0d3c

--
 i.


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2024-12-02 17:13 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <202410160432.oJAPbrW9-lkp@intel.co>
2024-11-21  3:55 ` [PATCH] platform/x86: x86-android-tablets: make platform data be static Pei Xiao
2024-11-21 12:32   ` Hans de Goede
2024-12-02 17:12   ` Ilpo Järvinen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®