]> git.karo-electronics.de Git - karo-tx-linux.git/commit
hwmon: (lm90) Make code more readable
authorJean Delvare <khali@linux-fr.org>
Tue, 30 Aug 2011 01:16:56 +0000 (11:16 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Tue, 30 Aug 2011 01:16:56 +0000 (11:16 +1000)
commitc00c65a5bd8db5437290b36a6f6c6197fdc140c6
treecda47751523d40d4d72bb1b8b9b1705a7cff89ce
parentd6b244e8e23f180401682e59ad2c4fb2ad8c479a
hwmon: (lm90) Make code more readable

Clean up the code to make it more readable:
* Remove reg_ and new_ prefixes from variable names, they made the
  names longer, causing extra line breaks, while not adding much
  value.
* Introduce struct device dev* = &client->dev in two functions, to
  avoid repeating client->dev everywhere in these functions.

Signed-off-by: Jean Delvare <khali@linux-fr.org>
Acked-by: Guenter Roeck <guenter.roeck@ericsson.com>
drivers/hwmon/lm90.c