Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp10460068imu; Thu, 6 Dec 2018 01:14:37 -0800 (PST) X-Google-Smtp-Source: AFSGD/XNlGi9x8qWqYmA4WRjxqNPQ7voVWm5d3Wxxw+akKTg8HskhdgXtEDv/AbYQOCoHTJYENLs X-Received: by 2002:a63:31d0:: with SMTP id x199mr23169493pgx.10.1544087677003; Thu, 06 Dec 2018 01:14:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544087676; cv=none; d=google.com; s=arc-20160816; b=XWi0ysWgJYr+1LqUwL7M1ENxnUFILcuBhfwBv7YPfo0W1y95dp5CJg4WZxhPVUImii X3jb/3HUdOL2WZPIo3rMUUTaJHfDRC0m9mNgzClon0oeCsFRcT73rgilKdFR7XJ8EzNQ J/JG72Ce8Bfu9BCfWryOvxE77Qxz3TD5gtkkrldWojnO9hIoL1tC3bE4/33g57rEG9v+ eH7FBYawALZ71GIn72JyCjLsqT+BFYRtGWTeFhs0yKMM+oeRYSGnQE9ae3qe2BrJ/CzT b3iUzWIfv+QdgOyj0gRA3Gmm+I0m0pC1jD85RrUorqH8W/nrbzm2FmWB/WZt6t9yEQQn ATxQ== 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-id:content-language:accept-language:message-id:date :thread-index:thread-topic:subject:cc:to:from; bh=faADg32LGcU6/Wcfez/Fy9KGXmBtHNFA2y7XEaSdDQ4=; b=RX44cVoDe6kljtazqHrWrMANJ5x2PC5P8uwAh1PzO1AwmPW2GsKkykkMIzx6Ijazg1 YBaMGLQGJ3ZTHwzRQbSryxoYXJU+vW3EcAlW/Zr8hKhjrbtfgSH+20EMKhb/smmgZxXy umx9mcXQoklJvR9wCKsXYl8MxmhHKKwGLXOLa4TgHziXsBsSqj8u/Ca/739DbcjzoX+l UHnctxXW61GvXXABTErF1gUDmvbEDAgJ4OzqlxT8M85ULiX5ArADtT5OJqgGRMD9i6UW CvGeZVx3mqbCGif1lewgDSs1qXFeis4RjakLLq+IcbVAhBXyw+68LXBVbzduHPjEfbhS bl7w== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g2si20314506pgk.497.2018.12.06.01.14.18; Thu, 06 Dec 2018 01:14:36 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729355AbeLFJNd (ORCPT + 99 others); Thu, 6 Dec 2018 04:13:33 -0500 Received: from mx08-00178001.pphosted.com ([91.207.212.93]:56049 "EHLO mx07-00178001.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727575AbeLFJNd (ORCPT ); Thu, 6 Dec 2018 04:13:33 -0500 Received: from pps.filterd (m0046660.ppops.net [127.0.0.1]) by mx08-00178001.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id wB69BVNx009594; Thu, 6 Dec 2018 10:13:06 +0100 Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx08-00178001.pphosted.com with ESMTP id 2p53mbaa7n-1 (version=TLSv1 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NOT); Thu, 06 Dec 2018 10:13:06 +0100 Received: from zeta.dmz-eu.st.com (zeta.dmz-eu.st.com [164.129.230.9]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 7EF4E123; Thu, 6 Dec 2018 09:12:57 +0000 (GMT) Received: from Webmail-eu.st.com (sfhdag3node1.st.com [10.75.127.7]) by zeta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 425292479; Thu, 6 Dec 2018 09:12:57 +0000 (GMT) Received: from SFHDAG3NODE2.st.com (10.75.127.8) by SFHDAG3NODE1.st.com (10.75.127.7) with Microsoft SMTP Server (TLS) id 15.0.1347.2; Thu, 6 Dec 2018 10:12:56 +0100 Received: from SFHDAG3NODE2.st.com ([fe80::b82f:1ce:8854:5b96]) by SFHDAG3NODE2.st.com ([fe80::b82f:1ce:8854:5b96%20]) with mapi id 15.00.1347.000; Thu, 6 Dec 2018 10:12:56 +0100 From: David HERNANDEZ SANCHEZ To: Zhang Rui , Eduardo Valentin , Daniel Lezcano , Rob Herring , Mark Rutland , Maxime Coquelin , Alexandre TORGUE CC: "linux-pm@vger.kernel.org" , "devicetree@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , "linux-kernel@vger.kernel.org" , "linux-stm32@st-md-mailman.stormreply.com" Subject: [PATCH] thermal: stm32: read factory settings properly Thread-Topic: [PATCH] thermal: stm32: read factory settings properly Thread-Index: AQHUjUPg9X1K8GffyUyGZZ5N7LVjEQ== Date: Thu, 6 Dec 2018 09:12:56 +0000 Message-ID: <1544087575-22242-1-git-send-email-david.hernandezsanchez@st.com> Accept-Language: fr-FR, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-exchange-messagesentrepresentingtype: 1 x-ms-exchange-transport-fromentityheader: Hosted x-originating-ip: [10.75.127.46] Content-Type: text/plain; charset="utf-8" Content-ID: <1CBBC0193CA97B4DAA00046551B7631A@st.com> Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2018-12-06_02:,, signatures=0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Q2FsbCBzdG1fdGhlcm1hbF9yZWFkX2ZhY3Rv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