When device generate interrupt due to junction temp cross to
threshold level, print the message to log the information.
bug
1602622
Change-Id: I811c92082b6106898f1775ccadce9def9ad0c6d3
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
(cherry picked from commit
7652021ee874fbb89d39b3ce03c539e53983203c)
Reviewed-on: http://git-master/r/769640
*temp = mchip->junction_temp_warning + 1000;
else
*temp = MAX77621_NORMAL_OPERATING_TEMP;
+
return 0;
}
{
struct max8973_chip *mchip = data;
+ dev_info(mchip->dev, "Junction Temp warning occurred\n");
thermal_zone_device_update(mchip->tz_device);
return IRQ_HANDLED;
}