Apparently bitwise '&' operator was supposed to be used here instead of logical '&&'.
Signed-off-by: Siarhei Siamashka <[email protected]> --- drivers/power/axp_power/axp20-mfd.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/power/axp_power/axp20-mfd.h b/drivers/power/axp_power/axp20-mfd.h index 214856e..0021fb5 100644 --- a/drivers/power/axp_power/axp20-mfd.h +++ b/drivers/power/axp_power/axp20-mfd.h @@ -88,7 +88,7 @@ static struct axp_mfd_chip *axp20_update_device(struct device *dev) low = 0; } - data->temperature = -1447 + ((high << 4) + (low && 0x0F)); + data->temperature = -1447 + ((high << 4) + (low & 0x0F)); data->last_updated = jiffies; data->valid = 1; } -- 1.8.3.2 -- You received this message because you are subscribed to the Google Groups "linux-sunxi" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
