Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp2780131yba; Mon, 15 Apr 2019 20:23:21 -0700 (PDT) X-Google-Smtp-Source: APXvYqxdRbUuLSPYTKt0i1neMA9h++X8yVXLAgx+2nOunmOFuI5CXY7xkWLv2NwxbKCsmV7AJGHk X-Received: by 2002:a63:1043:: with SMTP id 3mr73635693pgq.283.1555385001368; Mon, 15 Apr 2019 20:23:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555385001; cv=none; d=google.com; s=arc-20160816; b=z05RksGjZozSMGhSyuZSI0BIttfTCa0nvbWZTwzKUZQzoJWuODga9/4DCOQ0KNmJPw EeyMIWDLmJvRmDI2iFl7p9MD86Ee7g4xV5mJhhKWJ2kSzyxgV98W1WEbRzv0ZQ07DB/f 361G0QYqLZd7+01JUdnp30wuMbFWa3FJ4hpoU7sw+eGpkt3NTaTqMVn8dhbluL98Cs+2 iD9eiXxtcp0k6C6GKV2d3K7pgF5TvS4ELFt4JQxFyVdAyt4YLScplRSEH+jzDK05EtAF lZs27VNq3DduLAcFFLL1lONSMwTy2eKki39+pNk2UpvpnYyii/pKcDXCPm6iY3pwREjy rZrw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from:dkim-signature; bh=6Y1qJnNfkOM3Ow2YFkmqivAVweRaWhs19+5fyvCNQ3A=; b=nCHiqU7WjvDNITx8jtCB/cN3qYKWcyvZEkc511OBX5P/siq7rDpgV2sYAOxMEYBr0L sCHKfkImYs07fEKEKQ2ASdXI8qlfqpotdGle9oevA3BaW3/7j5egREBHRjKtkth4cslz VAiNZTyGgx/5uKmZ//WT7NIrhvdkxiNBfxfolUOi/sVHwFThXVO1FJ3CsH5FtvQ3a6zA l+SGOgkq7b4ZVxHZSRsilZp+NRdgaQuXHCi+ZAXHy+IHiSrz7Zrkm1o2Elc3Qg7TD+LA NwUWAiDVKQJlfb2VDlyrAUiv7bmV3Sk7U4D98MZMIe5MeXDjBd2PlZqaXu/eBwxNld4c OxPg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector1 header.b=E2khNjBd; 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=nxp.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 74si45604131pgb.203.2019.04.15.20.23.04; Mon, 15 Apr 2019 20:23:21 -0700 (PDT) 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=@nxp.com header.s=selector1 header.b=E2khNjBd; 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=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726786AbfDPDWX (ORCPT + 99 others); Mon, 15 Apr 2019 23:22:23 -0400 Received: from mail-eopbgr70053.outbound.protection.outlook.com ([40.107.7.53]:50575 "EHLO EUR04-HE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726237AbfDPDWX (ORCPT ); Mon, 15 Apr 2019 23:22:23 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=6Y1qJnNfkOM3Ow2YFkmqivAVweRaWhs19+5fyvCNQ3A=; b=E2khNjBdUWxQQW59fMmWyfPFt7eT5uekcq9wy60cA1L6pPU4M3WIMUJKydjbaFR/m0KoK0wz2wVzRx6QDerpeT+8xJLNLeYgSmv3bv1oFx1ZlJXIQIdOwDn2osVXS9NCzWRJrIheRo1O1evJ+cGN1lxadSutfooTcflS78AJjIU= Received: from AM6PR0402MB3911.eurprd04.prod.outlook.com (52.133.30.10) by AM6PR0402MB3895.eurprd04.prod.outlook.com (52.133.29.158) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1813.11; Tue, 16 Apr 2019 03:22:17 +0000 Received: from AM6PR0402MB3911.eurprd04.prod.outlook.com ([fe80::c854:fc94:f9ed:2ca2]) by AM6PR0402MB3911.eurprd04.prod.outlook.com ([fe80::c854:fc94:f9ed:2ca2%6]) with mapi id 15.20.1792.020; Tue, 16 Apr 2019 03:22:17 +0000 From: Anson Huang To: "robh+dt@kernel.org" , "mark.rutland@arm.com" , "shawnguo@kernel.org" , "s.hauer@pengutronix.de" , "kernel@pengutronix.de" , "festevam@gmail.com" , "catalin.marinas@arm.com" , "will.deacon@arm.com" , "rui.zhang@intel.com" , "edubezval@gmail.com" , "daniel.lezcano@linaro.org" , Aisheng Dong , "ulf.hansson@linaro.org" , Daniel Baluta , Peng Fan , "heiko@sntech.de" , "horms+renesas@verge.net.au" , "agross@kernel.org" , "olof@lixom.net" , "bjorn.andersson@linaro.org" , "jagan@amarulasolutions.com" , "enric.balletbo@collabora.com" , "marc.w.gonzalez@free.fr" , "devicetree@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , "linux-pm@vger.kernel.org" CC: dl-linux-imx Subject: [PATCH V12 2/5] thermal: of-thermal: add API for getting sensor ID from DT Thread-Topic: [PATCH V12 2/5] thermal: of-thermal: add API for getting sensor ID from DT Thread-Index: AQHU9AOYmR6BJ3silEqzBa3crqYckQ== Date: Tue, 16 Apr 2019 03:22:17 +0000 Message-ID: <1555384609-7030-2-git-send-email-Anson.Huang@nxp.com> References: <1555384609-7030-1-git-send-email-Anson.Huang@nxp.com> In-Reply-To: <1555384609-7030-1-git-send-email-Anson.Huang@nxp.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-mailer: git-send-email 2.7.4 x-clientproxiedby: HK2PR02CA0133.apcprd02.prod.outlook.com (2603:1096:202:16::17) To AM6PR0402MB3911.eurprd04.prod.outlook.com (2603:10a6:209:1c::10) authentication-results: spf=none (sender IP is ) smtp.mailfrom=anson.huang@nxp.com; x-ms-exchange-messagesentrepresentingtype: 1 x-originating-ip: [119.31.174.66] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: f05a450b-eb62-4362-819e-08d6c21aba5a x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600140)(711020)(4605104)(4618075)(2017052603328)(7193020);SRVR:AM6PR0402MB3895; x-ms-traffictypediagnostic: AM6PR0402MB3895: x-microsoft-antispam-prvs: x-forefront-prvs: 000947967F x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(39860400002)(366004)(136003)(396003)(346002)(376002)(199004)(189003)(6512007)(106356001)(105586002)(53936002)(2501003)(36756003)(6116002)(3846002)(66066001)(68736007)(486006)(110136005)(316002)(5660300002)(11346002)(446003)(476003)(2616005)(97736004)(71190400001)(71200400001)(81166006)(99286004)(8936002)(81156014)(8676002)(50226002)(52116002)(102836004)(256004)(14454004)(478600001)(6506007)(386003)(26005)(7736002)(4326008)(76176011)(86362001)(2906002)(7416002)(186003)(2201001)(25786009)(6486002)(6436002)(305945005)(921003)(1121003);DIR:OUT;SFP:1101;SCL:1;SRVR:AM6PR0402MB3895;H:AM6PR0402MB3911.eurprd04.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;A:1;MX:1; received-spf: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: 2lTIscw5KFDqFnh6h0QVSqOr2m3B8jRxzXOFmam/zHivjYcDk2t/gKsIdTWUFrhpMSQehAjzidWsw2csHyDBO3+5Eo+wRNvEm7waXJoUceEcVK2t5hNVD4FZ+FTLGik1Tiqc9r2XmO9Pk75bS3TnhOol0Z9W3+Tlbc6KQ/oFCYX8P/FKdkzab5YUggqX93msJG7WvSj/CE+IdIIMtFO+SpVK8ToJJMc8JfUAYN1vk2bqmD19jL/MdU13I2JQuR7zu4NiTLrUzp0d8PlZwFOHi9ZfW+YONKS/Z7vyBJo/n3laxqOL8nZijz7kM5BirXmuPVosYyoRYiqTXODSnfPf9Jdcazi4ta0mNTAZzWCWGczaLMuR2Z0j3sPlhmTdL/GjudiV7S5em3mmKCUUfondPzZI6Qfky/6GfmV1EwrKDj8= Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: f05a450b-eb62-4362-819e-08d6c21aba5a X-MS-Exchange-CrossTenant-originalarrivaltime: 16 Apr 2019 03:22:17.8220 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM6PR0402MB3895 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org T24gc29tZSBwbGF0Zm9ybXMgbGlrZSBpLk1YOFFYUCwgdGhlIHRoZXJtYWwgZHJpdmVyIG5lZWRz IGENCnJlYWwgSFcgc2Vuc29yIElEIGZyb20gRFQgdGhlcm1hbCB6b25lLCB0aGUgSFcgc2Vuc29y IElEIGlzDQp1c2VkIHRvIGdldCB0ZW1wZXJhdHVyZSBmcm9tIFNDVSBmaXJtd2FyZSwgY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