Guenter Roeck 674d0ed858 hwmon: (atxp1) Set and use error code from vid_to_reg()
vid_to_reg() returns -1 if it encounters an error. Return -EINVAL instead.
Its only caller, atxp1_storevcore(), doesn't use the return code but
returns -1 instead, which is wrong anyway as it means -EPERM.
Use the return value from vid_to_reg() instead to report the error.

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Reviewed-by: Jean Delvare <khali@linux-fr.org>
2013-10-13 16:16:26 -07:00
..
2012-11-28 11:50:34 -08:00
2013-10-13 16:16:25 -07:00
2013-08-11 22:10:39 -07:00
2013-04-07 21:16:41 -07:00
2013-08-27 08:28:01 -07:00
2013-10-13 16:16:25 -07:00
2013-08-11 22:10:39 -07:00
2013-09-11 13:01:31 -07:00
2013-08-11 22:10:39 -07:00
2013-08-11 22:10:39 -07:00
2013-08-11 22:10:39 -07:00
2013-08-11 22:10:39 -07:00
2012-11-28 11:50:34 -08:00
2013-08-27 08:28:01 -07:00
2013-09-11 13:01:32 -07:00
2013-08-27 08:28:01 -07:00
2013-06-27 10:29:03 -07:00
2013-08-11 22:10:39 -07:00
2013-02-06 09:58:07 -08:00
2012-11-28 11:50:34 -08:00
2012-11-28 11:50:34 -08:00
2013-03-18 21:19:49 +01:00
2013-08-11 22:10:39 -07:00
2013-04-07 21:16:42 -07:00
2013-08-11 22:10:39 -07:00
2012-11-28 11:50:34 -08:00
2012-10-10 15:25:56 +02:00
2013-08-11 22:10:39 -07:00
2013-08-11 22:10:39 -07:00
2013-08-11 22:10:39 -07:00
2013-08-11 22:10:39 -07:00
2013-08-11 22:10:39 -07:00
2012-11-28 11:49:40 -08:00
2012-11-28 11:49:40 -08:00
2012-11-28 11:50:34 -08:00
2012-11-28 11:50:34 -08:00
2013-08-11 22:10:39 -07:00
2013-09-11 13:01:41 -07:00
2012-11-28 11:50:34 -08:00
2013-08-11 22:10:39 -07:00
2012-11-28 11:50:34 -08:00
2012-11-28 11:50:34 -08:00