]> git.baikalelectronics.ru Git - kernel.git/commit
hwmon: (adt7475) Change show functions to return error data correctly
authorTokunori Ikegami <ikegami@allied-telesis.co.jp>
Wed, 8 Aug 2018 01:32:19 +0000 (10:32 +0900)
committerGuenter Roeck <linux@roeck-us.net>
Fri, 10 Aug 2018 16:13:01 +0000 (09:13 -0700)
commite4b94b2224c801c3767db070eaa9bdb88379d8b8
tree76e06b56af86bde0766c3467143aa3980ce10458
parent7cb8eb5959293c6c06b3157b2d952c9fdc0b3cf9
hwmon: (adt7475) Change show functions to return error data correctly

Change update device function to return an error pointer if needed,
and report the error to user space.

Signed-off-by: Tokunori Ikegami <ikegami@allied-telesis.co.jp>
Cc: Guenter Roeck <linux@roeck-us.net>
Cc: Chris Packham <chris.packham@alliedtelesis.co.nz>
[groeck: Clarified/updated description]
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/adt7475.c