Commit efdf761a authored by Yazen Ghannam's avatar Yazen Ghannam Committed by Borislav Petkov (AMD)

hwmon: (k10temp) Rename _data variable

...to address the following warning:

  drivers/hwmon/k10temp.c:273:47:
  warning: declaration shadows a variable in the global scope [-Wshadow]
  static umode_t k10temp_is_visible(const void *_data,
                                              ^
No functional change is intended.
Signed-off-by: default avatarYazen Ghannam <yazen.ghannam@amd.com>
Signed-off-by: default avatarBorislav Petkov (AMD) <bp@alien8.de>
Acked-by: default avatarGuenter Roeck <linux@roeck-us.net>
Link: https://lore.kernel.org/r/20240606-fix-smn-bad-read-v4-8-ffde21931c3f@amd.com
parent 0e097f2b
...@@ -269,11 +269,11 @@ static int k10temp_read(struct device *dev, enum hwmon_sensor_types type, ...@@ -269,11 +269,11 @@ static int k10temp_read(struct device *dev, enum hwmon_sensor_types type,
} }
} }
static umode_t k10temp_is_visible(const void *_data, static umode_t k10temp_is_visible(const void *drvdata,
enum hwmon_sensor_types type, enum hwmon_sensor_types type,
u32 attr, int channel) u32 attr, int channel)
{ {
const struct k10temp_data *data = _data; const struct k10temp_data *data = drvdata;
struct pci_dev *pdev = data->pdev; struct pci_dev *pdev = data->pdev;
u32 reg; u32 reg;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment