lkml.org 
[lkml]   [2021]   [Apr]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[RFC PATCH linux-next] hwmon: fsp3y_info[] can be static

Fixes: fdf70b5de6f3 ("hwmon: Add driver for fsp-3y PSUs and PDUs")
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: kernel test robot <lkp@intel.com>
---
fsp-3y.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/hwmon/pmbus/fsp-3y.c b/drivers/hwmon/pmbus/fsp-3y.c
index 3ff4bace9a85f..284b73aaed467 100644
--- a/drivers/hwmon/pmbus/fsp-3y.c
+++ b/drivers/hwmon/pmbus/fsp-3y.c
@@ -147,7 +147,7 @@ static int fsp3y_read_word_data(struct i2c_client *client, int page, int phase,
return i2c_smbus_read_word_data(client, reg);
}

-struct pmbus_driver_info fsp3y_info[] = {
+static struct pmbus_driver_info fsp3y_info[] = {
[ym2151e] = {
.pages = 2,
.func[YM2151_PAGE_12V_LOG] =
\
 
 \ /
  Last update: 2021-04-16 15:51    [W:0.060 / U:1.164 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site