Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Merge tag 'hwmon-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/groeck/linux-staging

Pull hwmon cleanups from Guenter Roeck:
"Minor cleanup in ina2xx and hwmon-vid drivers; no functional changes"

* tag 'hwmon-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/groeck/linux-staging:
hwmon: (ina2xx) Remove casting the return value which is a void pointer
hwmon: (hwmon-vid) Add __maybe_unused attribute to dummy variable

+2 -3
+1 -1
drivers/hwmon/hwmon-vid.c
··· 246 246 */ 247 247 static u8 get_via_model_d_vrm(void) 248 248 { 249 - unsigned int vid, brand, dummy; 249 + unsigned int vid, brand, __maybe_unused dummy; 250 250 static const char *brands[4] = { 251 251 "C7-M", "C7", "Eden", "C7-D" 252 252 };
+1 -2
drivers/hwmon/ina2xx.c
··· 233 233 return -ENOMEM; 234 234 235 235 if (dev_get_platdata(&client->dev)) { 236 - pdata = 237 - (struct ina2xx_platform_data *)dev_get_platdata(&client->dev); 236 + pdata = dev_get_platdata(&client->dev); 238 237 shunt = pdata->shunt_uohms; 239 238 } else if (!of_property_read_u32(client->dev.of_node, 240 239 "shunt-resistor", &val)) {