Guenter Roeck 571e3f3a8e hwmon: (w83773g) Fix fault detection and reporting
Smatch reports:

drivers/hwmon/w83773g.c:105
	get_fault() warn: shift has higher precedence than mask

Code analysis shows that the code is indeed wrong.
Fix it, and while we are at it, drop unnecessary typecast.

Fixes: 86a10c802362 ("hwmon: Add W83773G driver")
Cc: Lei YU <mine260309@gmail.com>
Reviewed-by: Lei YU <mine260309@gmail.com>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
2018-01-02 15:05:34 -08:00
..
2014-08-04 07:01:35 -07:00
2018-01-02 15:05:34 -08:00
2016-06-27 18:58:04 -07:00
2017-04-02 07:01:53 -07:00
2017-04-02 07:01:53 -07:00
2013-03-18 21:19:49 +01:00
2017-04-02 07:01:53 -07:00
2017-04-13 06:09:26 -07:00
2017-04-02 07:01:53 -07:00
2014-08-04 07:01:35 -07:00
2016-03-05 06:25:34 -08:00
2014-08-04 07:01:35 -07:00
2014-08-04 07:01:35 -07:00
2018-01-02 15:05:34 -08:00
2017-10-29 18:36:03 -07:00
2014-01-29 20:40:08 +01:00
2015-06-21 22:54:53 -07:00
2016-12-02 13:28:05 -08:00