Re: [PATCH 2/2] devicetree: Document the max31760 device binding.

2017-04-10 Thread Rob Herring
On Tue, Apr 04, 2017 at 12:20:34PM -0700, John Muir wrote: > Signed-off-by: John Muir > --- > .../devicetree/bindings/hwmon/max31760.txt | 58 > ++ > 1 file changed, 58 insertions(+) > create mode 100644

[PATCH 2/2] hwmon: (tacho) Remove an unused variable

2017-04-10 Thread Dan Carpenter
We never use this global variable. Signed-off-by: Dan Carpenter diff --git a/drivers/hwmon/aspeed-pwm-tacho.c b/drivers/hwmon/aspeed-pwm-tacho.c index 2f22add5c73b..b96fff50a3ee 100644 --- a/drivers/hwmon/aspeed-pwm-tacho.c +++ b/drivers/hwmon/aspeed-pwm-tacho.c @@

[PATCH 1/2] hwmon: (tacho) Fix a condition in aspeed_get_fan_tach_ch_rpm()

2017-04-10 Thread Dan Carpenter
What we want is for regmap_read() to return zero meaning success and for RESULT_STATUS_MASK which is BIT(31) to be set set. The current code is buggy in two ways. It requires both failure conditions should be met before it fails. And if it times out then it returns zero instead of -EIO. Fixes: