mtherm 49 drivers/thermal/max77620_thermal.c struct max77620_therm_info *mtherm = data; mtherm 53 drivers/thermal/max77620_thermal.c ret = regmap_read(mtherm->rmap, MAX77620_REG_STATLBT, &val); mtherm 55 drivers/thermal/max77620_thermal.c dev_err(mtherm->dev, "Failed to read STATLBT: %d\n", ret); mtherm 75 drivers/thermal/max77620_thermal.c struct max77620_therm_info *mtherm = data; mtherm 77 drivers/thermal/max77620_thermal.c if (irq == mtherm->irq_tjalarm1) mtherm 78 drivers/thermal/max77620_thermal.c dev_warn(mtherm->dev, "Junction Temp Alarm1(120C) occurred\n"); mtherm 79 drivers/thermal/max77620_thermal.c else if (irq == mtherm->irq_tjalarm2) mtherm 80 drivers/thermal/max77620_thermal.c dev_crit(mtherm->dev, "Junction Temp Alarm2(140C) occurred\n"); mtherm 82 drivers/thermal/max77620_thermal.c thermal_zone_device_update(mtherm->tz_device, mtherm 90 drivers/thermal/max77620_thermal.c struct max77620_therm_info *mtherm; mtherm 93 drivers/thermal/max77620_thermal.c mtherm = devm_kzalloc(&pdev->dev, sizeof(*mtherm), GFP_KERNEL); mtherm 94 drivers/thermal/max77620_thermal.c if (!mtherm) mtherm 97 drivers/thermal/max77620_thermal.c mtherm->irq_tjalarm1 = platform_get_irq(pdev, 0); mtherm 98 drivers/thermal/max77620_thermal.c mtherm->irq_tjalarm2 = platform_get_irq(pdev, 1); mtherm 99 drivers/thermal/max77620_thermal.c if ((mtherm->irq_tjalarm1 < 0) || (mtherm->irq_tjalarm2 < 0)) { mtherm 104 drivers/thermal/max77620_thermal.c mtherm->dev = &pdev->dev; mtherm 105 drivers/thermal/max77620_thermal.c mtherm->rmap = dev_get_regmap(pdev->dev.parent, NULL); mtherm 106 drivers/thermal/max77620_thermal.c if (!mtherm->rmap) { mtherm 117 drivers/thermal/max77620_thermal.c mtherm->tz_device = devm_thermal_zone_of_sensor_register(&pdev->dev, 0, mtherm 118 drivers/thermal/max77620_thermal.c mtherm, &max77620_thermal_ops); mtherm 119 drivers/thermal/max77620_thermal.c if (IS_ERR(mtherm->tz_device)) { mtherm 120 drivers/thermal/max77620_thermal.c ret = PTR_ERR(mtherm->tz_device); mtherm 126 drivers/thermal/max77620_thermal.c ret = devm_request_threaded_irq(&pdev->dev, mtherm->irq_tjalarm1, NULL, mtherm 129 drivers/thermal/max77620_thermal.c dev_name(&pdev->dev), mtherm); mtherm 135 drivers/thermal/max77620_thermal.c ret = devm_request_threaded_irq(&pdev->dev, mtherm->irq_tjalarm2, NULL, mtherm 138 drivers/thermal/max77620_thermal.c dev_name(&pdev->dev), mtherm); mtherm 144 drivers/thermal/max77620_thermal.c platform_set_drvdata(pdev, mtherm);