hwmon: (adt7475) replace find_nearest() with find_closest()
authorChris Packham <chris.packham@alliedtelesis.co.nz>
Thu, 11 May 2017 03:45:21 +0000 (15:45 +1200)
committerGuenter Roeck <linux@roeck-us.net>
Mon, 12 Jun 2017 00:08:19 +0000 (17:08 -0700)
commite4651640403307d79559dff113da4933c0921714
tree663ebc8e73643023527477dffa05b45a5d9b97f9
parent8991ebd9c9a69dcc03f5a961718a7a3184c1295d
hwmon: (adt7475) replace find_nearest() with find_closest()

The adt7475 has had find_nearest() since it's creation in 2009. Since
then find_closest() has been introduced and several drivers have been
updated to use it. Update the adt7475 to use find_closest() and remove
the now unused find_nearest().

Signed-off-by: Chris Packham <chris.packham@alliedtelesis.co.nz>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/adt7475.c