Skip to content

Commit efdf761

Browse files
yghannambp3tk0v
authored andcommitted
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: Yazen Ghannam <[email protected]> Signed-off-by: Borislav Petkov (AMD) <[email protected]> Acked-by: Guenter Roeck <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 0e097f2 commit efdf761

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/hwmon/k10temp.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -269,11 +269,11 @@ static int k10temp_read(struct device *dev, enum hwmon_sensor_types type,
269269
}
270270
}
271271

272-
static umode_t k10temp_is_visible(const void *_data,
272+
static umode_t k10temp_is_visible(const void *drvdata,
273273
enum hwmon_sensor_types type,
274274
u32 attr, int channel)
275275
{
276-
const struct k10temp_data *data = _data;
276+
const struct k10temp_data *data = drvdata;
277277
struct pci_dev *pdev = data->pdev;
278278
u32 reg;
279279

0 commit comments

Comments
 (0)