summaryrefslogtreecommitdiffstats
path: root/drivers/ufs
diff options
context:
space:
mode:
authorBart Van Assche <bvanassche@acm.org>2023-07-27 12:41:16 -0700
committerMartin K. Petersen <martin.petersen@oracle.com>2023-07-31 15:17:50 -0400
commitf08191520614764789aec42161b297c327d3660a (patch)
treeb7e384654cdd0c1497bfa1a4c15fd01e7d1a8631 /drivers/ufs
parent8d8af294ce03c9997fff36a20d0e697c6a73c41b (diff)
downloadlinux-stable-f08191520614764789aec42161b297c327d3660a.tar.gz
linux-stable-f08191520614764789aec42161b297c327d3660a.tar.bz2
linux-stable-f08191520614764789aec42161b297c327d3660a.zip
scsi: ufs: Rename a function argument
This patch suppresses the following W=2 warning: drivers/ufs/core/ufs-hwmon.c:130:49: warning: declaration of ‘_data’ shadows a global declaration [-Wshadow] Reviewed-by: Avri Altman <avri.altman@wdc.com> Signed-off-by: Bart Van Assche <bvanassche@acm.org> Link: https://lore.kernel.org/r/20230727194457.3152309-5-bvanassche@acm.org Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/ufs')
-rw-r--r--drivers/ufs/core/ufs-hwmon.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/ufs/core/ufs-hwmon.c b/drivers/ufs/core/ufs-hwmon.c
index 101d7082446f..34194064367f 100644
--- a/drivers/ufs/core/ufs-hwmon.c
+++ b/drivers/ufs/core/ufs-hwmon.c
@@ -127,7 +127,8 @@ static int ufs_hwmon_write(struct device *dev, enum hwmon_sensor_types type, u32
return err;
}
-static umode_t ufs_hwmon_is_visible(const void *_data, enum hwmon_sensor_types type, u32 attr,
+static umode_t ufs_hwmon_is_visible(const void *data,
+ enum hwmon_sensor_types type, u32 attr,
int channel)
{
if (type != hwmon_temp)