Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp516778ybl; Fri, 6 Dec 2019 01:36:16 -0800 (PST) X-Google-Smtp-Source: APXvYqwR3YVdU4jGMT8wyxCRY9A9dfdDY6/Ac4rl6YqS/OahYLC5RGGuWyvsJOImPKIoKzQy/BBF X-Received: by 2002:aca:5ad4:: with SMTP id o203mr11505439oib.73.1575624976652; Fri, 06 Dec 2019 01:36:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575624976; cv=none; d=google.com; s=arc-20160816; b=ox3ygXJDlYeIxgYFBehdGNd+yudy5jxAykPK53+cwL5RunCK3//ss8HxojGXWdMamM dxwlLvpLM6zfERiFv9/MAoBW84W45pkfOtor/FJ1iv1mQzOzlfMJFmOOILAzpNpN0Iju MP5AdsIs/6Vb0EiKzGaHt6OG4j2jchyQkoXNKSizsEU+Si3r5eNIKJCP60amUOUuXyrl aplAEHODsBvaAhnhz3XcDWD21LzNYJLiM/lxz+E756AOXwIy18P6np3VReG4ChQT++vq 6ZVhBjuM2sTWSmS4ZTX31ecO3GII30RGyimqf2WU8m3nbAyMTxOf4ds6XoOB6KAkmE4W fpHQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:date:cc:to:from:subject:message-id :dkim-signature; bh=vR5+TmnGL8k18O3RfwhBu/Xl8JNbLQTJoi3SA28TkwA=; b=BdLf3VheQ5dnywC35OVuopQf2cGU3baXAQDyuktg0sCf/IVcvBWQbOIeKPk6RgJZEB QHk+6/4AOahZPWAa0IEguUGbHlvD7Ofvs9Bx8f6BqrsLCgm4GwA0V727hHohWOQ7I0mf XWxuaI8LSplZH+KRfXkoQA05qmNIG+s6fFXtQYm1ECSvRB0mOTBVt6AZzlxoSynN/l+T YskJeC0KrNUyz/8XsacbUKhaIMWTrPzjvX7oC0F4KWKUltrUhVKsW0Ia7/1EZhXSQ1UN sEGtmKfnmPeldg3U9V2bcm+MKoAsww13zTLe/LRUJGUP17YgRaqy4eCfNjpW/s2Wnmkv nyHQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=FEJKPtO6; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f194si6214294oig.243.2019.12.06.01.36.04; Fri, 06 Dec 2019 01:36:16 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=FEJKPtO6; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726244AbfLFJfe (ORCPT + 99 others); Fri, 6 Dec 2019 04:35:34 -0500 Received: from mailgw02.mediatek.com ([210.61.82.184]:5461 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726070AbfLFJfe (ORCPT ); Fri, 6 Dec 2019 04:35:34 -0500 X-UUID: 2dfcf66ed612406c98283f1ad3fb97d1-20191206 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Transfer-Encoding:MIME-Version:Content-Type:References:In-Reply-To:Date:CC:To:From:Subject:Message-ID; bh=vR5+TmnGL8k18O3RfwhBu/Xl8JNbLQTJoi3SA28TkwA=; b=FEJKPtO6DGFE/HBnaQa1tq7mNOXQMTKic6YvCv9ETOPxmUS4driR3Uwkhc3saEfbP6jV+LUGqLK98mmgBsfHG8G5J/qQ+AnGR5EX05ECxxOk1xoLnFLLj4RbxynbYAr7y3GPA7JKhp/LMS1ZWZ+/A7o4jTD3G16AHGDC4ZXspBM=; X-UUID: 2dfcf66ed612406c98283f1ad3fb97d1-20191206 Received: from mtkcas08.mediatek.inc [(172.21.101.126)] by mailgw02.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0809 with TLS) with ESMTP id 583983391; Fri, 06 Dec 2019 17:35:29 +0800 Received: from mtkcas07.mediatek.inc (172.21.101.84) by mtkmbs06n2.mediatek.inc (172.21.101.130) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Fri, 6 Dec 2019 17:35:27 +0800 Received: from [172.21.84.99] (172.21.84.99) by mtkcas07.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1395.4 via Frontend Transport; Fri, 6 Dec 2019 17:34:50 +0800 Message-ID: <1575624927.1631.7.camel@mtksdccf07> Subject: Re: [PATCH v2 7/8] thermal: mediatek: add another get_temp ops for thermal sensors From: Michael Kao To: Hsin-Yi Wang CC: Zhang Rui , Eduardo Valentin , Daniel Lezcano , Rob Herring , Mark Rutland , "Matthias Brugger" , , Devicetree List , lkml , "moderated list:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE" , Date: Fri, 6 Dec 2019 17:35:27 +0800 In-Reply-To: References: <1557494826-6044-1-git-send-email-michael.kao@mediatek.com> <1557494826-6044-8-git-send-email-michael.kao@mediatek.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.2.3-0ubuntu6 MIME-Version: 1.0 X-TM-SNTS-SMTP: B074D70E04D46F7F6E1F3B63CE826B399628CA35CC3E3E458B7FA485D552647E2000:8 X-MTK: N Content-Transfer-Encoding: base64 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org T24gVGh1LCAyMDE5LTExLTIxIGF0IDE1OjAwICswODAwLCBIc2luLVlpIFdhbmcgd3JvdGU6DQo+ IE9uIEZyaSwgTWF5IDEwLCAyMDE5IGF0IDk6MjcgUE0gbWljaGFlbC5rYW8gPG1pY2hhZWwua2Fv QG1lZGlhdGVrLmNvbT4gd3JvdGU6DQo+IA0KPiA+IC0gICAgICAgdHpkZXYgPSBkZXZtX3RoZXJt YWxfem9uZV9vZl9zZW5zb3JfcmVnaXN0ZXIoJnBkZXYtPmRldiwgMCwgbXQsDQo+ID4gLSAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAmbXRrX3RoZXJt YWxfb3BzKTsNCj4gPiAtICAgICAgIGlmIChJU19FUlIodHpkZXYpKSB7DQo+ID4gLSAgICAgICAg ICAgICAgIHJldCA9IFBUUl9FUlIodHpkZXYpOw0KPiA+IC0gICAgICAgICAgICAgICBnb3RvIGVy cl9kaXNhYmxlX2Nsa19wZXJpX3RoZXJtOw0KPiA+ICsgICAgICAgZm9yIChpID0gMDsgaSA8IG10 LT5jb25mLT5udW1fc2Vuc29ycyArIDE7IGkrKykgew0KPiA+ICsgICAgICAgICAgICAgICB0eiA9 IGttYWxsb2Moc2l6ZW9mKCp0eiksIEdGUF9LRVJORUwpOw0KPiA+ICsgICAgICAgICAgICAgICBp ZiAoIXR6KQ0KPiA+ICsgICAgICAgICAgICAgICAgICAgICAgIHJldHVybiAtRU5PTUVNOw0KPiA+ ICsNCj4gPiArICAgICAgICAgICAgICAgdHotPm10ID0gbXQ7DQo+ID4gKyAgICAgICAgICAgICAg IHR6LT5pZCA9IGk7DQo+ID4gKw0KPiA+ICsgICAgICAgICAgICAgICB0emRldiA9IGRldm1fdGhl cm1hbF96b25lX29mX3NlbnNvcl9yZWdpc3RlcigmcGRldi0+ZGV2LCBpLA0KPiA+ICsgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgdHosIChpID09IDApID8NCj4gPiArICAgICAgICAgICAg ICAgICAgICAgICAgIC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