]> git.karo-electronics.de Git - karo-tx-linux.git/commit
hwmon: (adcxx) Simplify show_name function
authorGuenter Roeck <linux@roeck-us.net>
Tue, 11 Sep 2012 20:36:33 +0000 (13:36 -0700)
committerGuenter Roeck <linux@roeck-us.net>
Wed, 19 Sep 2012 13:51:40 +0000 (06:51 -0700)
commit87e6af8a0e57b46394c08db13efd545f3bea420d
treeabd3d8146b2dbe1accafc7e2cc10a05662ffc35a
parent700044cb336ae37de35463f8b493c5fe2a01b11b
hwmon: (adcxx) Simplify show_name function

Display device name using to_spi_device(dev)->modalias instead of computing it
from the number of ADC channels. This is cleaner and reduces code size.

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/adcxx.c