max77620_thermal.c (ec4664b3fd6d565a79eb562e4339528f74eb1cca) max77620_thermal.c (0e70f466fb910ae54c4c71243b99385129e93feb)
1/*
2 * Junction temperature thermal driver for Maxim Max77620.
3 *
4 * Copyright (c) 2016, NVIDIA CORPORATION. All rights reserved.
5 *
6 * Author: Laxman Dewangan <ldewangan@nvidia.com>
7 * Mallikarjun Kasoju <mkasoju@nvidia.com>
8 *

--- 68 unchanged lines hidden (view full) ---

77{
78 struct max77620_therm_info *mtherm = data;
79
80 if (irq == mtherm->irq_tjalarm1)
81 dev_warn(mtherm->dev, "Junction Temp Alarm1(120C) occurred\n");
82 else if (irq == mtherm->irq_tjalarm2)
83 dev_crit(mtherm->dev, "Junction Temp Alarm2(140C) occurred\n");
84
1/*
2 * Junction temperature thermal driver for Maxim Max77620.
3 *
4 * Copyright (c) 2016, NVIDIA CORPORATION. All rights reserved.
5 *
6 * Author: Laxman Dewangan <ldewangan@nvidia.com>
7 * Mallikarjun Kasoju <mkasoju@nvidia.com>
8 *

--- 68 unchanged lines hidden (view full) ---

77{
78 struct max77620_therm_info *mtherm = data;
79
80 if (irq == mtherm->irq_tjalarm1)
81 dev_warn(mtherm->dev, "Junction Temp Alarm1(120C) occurred\n");
82 else if (irq == mtherm->irq_tjalarm2)
83 dev_crit(mtherm->dev, "Junction Temp Alarm2(140C) occurred\n");
84
85 thermal_zone_device_update(mtherm->tz_device);
85 thermal_zone_device_update(mtherm->tz_device,
86 THERMAL_EVENT_UNSPECIFIED);
86
87 return IRQ_HANDLED;
88}
89
90static int max77620_thermal_probe(struct platform_device *pdev)
91{
92 struct max77620_therm_info *mtherm;
93 int ret;

--- 72 unchanged lines hidden ---
87
88 return IRQ_HANDLED;
89}
90
91static int max77620_thermal_probe(struct platform_device *pdev)
92{
93 struct max77620_therm_info *mtherm;
94 int ret;

--- 72 unchanged lines hidden ---