]> git.baikalelectronics.ru Git - kernel.git/commit
hwmon: (it87) Don't use pdev as static driver variable
authorGuenter Roeck <linux@roeck-us.net>
Sat, 28 Mar 2015 14:49:14 +0000 (07:49 -0700)
committerGuenter Roeck <linux@roeck-us.net>
Tue, 19 Apr 2016 13:32:36 +0000 (06:32 -0700)
commit3ad831077faf5abbf2448b41e456b8e7dd02ada2
treee01af634d0b4273253a7598d2b7acfcd50a6e6ca
parenta3fb4fcd8c0ca7813e1da9b31d4996da215a40f2
hwmon: (it87) Don't use pdev as static driver variable

Using the same varible name for function names and as static
variable invites misuse and prevents us from adding support
for a second chip. Rename pdev to it87_pdev and limit its use
to where it is needed.

Tested-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/it87.c