Received: by 10.192.165.148 with SMTP id m20csp418003imm; Wed, 2 May 2018 02:34:34 -0700 (PDT) X-Google-Smtp-Source: AB8JxZo1SR/7X7TnPidPW4R0R1y9MILu7MCZNINYDlplUZBbQ53iFdtTnQclTqvHGasfVZMkoOTC X-Received: by 2002:a17:902:758d:: with SMTP id j13-v6mr19516451pll.188.1525253674408; Wed, 02 May 2018 02:34:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525253674; cv=none; d=google.com; s=arc-20160816; b=d0cpcSDWhX7CocqtLTrs9YPFQRJH++crbZBmxMRpIg6On0ZlBXKxDnME38Yoy2FCYo e49CQmkla9fNLSazobgRrQkBCBpTWWe1IFX20EfuZVAIuWLuXKxtftNjYjetEsxiFOB+ E+CP5nrjRr35j5Q+YXmowZLbprbMtAB7SYBsu88PNk+xGuVPVSNssznTuCYEv4Ab9QiE rCuFmMGZuZPkwh3TXY4sC6DW7YzEUgGVJQz11VsVKVbmgQKVRWFosl0vp9RwYaib2uDZ osl2CooZHbb9nAGloDX0fzZdNa4ZtnGlaAjryJNG7gLT4Yv3xjBvAikYlKeqxDT+v6li 70vA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:cms-type :content-transfer-encoding:mime-version:in-reply-to:user-agent :message-id:date:subject:cc:to:from:dkim-signature:dkim-filter :arc-authentication-results; bh=yKe89Py+mlWqrCqAMhiCQk8I4V+Z2fYm8m/Gxh2jbmE=; b=CpA65z7x+u828l+Q7yJnx3aASWxTzw68TdsVafKUbDBJx9Ud466DFUv7KxnyE0mDBx jnuNcdvsi9+ozZuRiDfsAuR4Jc2IKtBgrvPm1wXAo7u8Q4G9RWtepGUnN6lqre5fo7WZ FxuIK6LfRqIpUvPtkRvxwTvnOc5RCd1PPBzurrJzZKRFH0atKcxBokOc8f6zxO1n9dYd DUWaVSeiynqR9QgcftVb2SjtU0P4+QeAEvg7IrusuwFE0pbJOVuYvH9cK5ik77FTfUbj j+xLJP6BD8BzNvi8quuwKxGGFiJJ8fmJThRJAC9PltF0bna2OcO274FxXPXphVYW5Fcl lwYQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=b6bF2QDE; 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=samsung.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f15-v6si10647395plr.310.2018.05.02.02.34.20; Wed, 02 May 2018 02:34:34 -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=@samsung.com header.s=mail20170921 header.b=b6bF2QDE; 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=samsung.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751318AbeEBJd0 (ORCPT + 99 others); Wed, 2 May 2018 05:33:26 -0400 Received: from mailout1.w1.samsung.com ([210.118.77.11]:58184 "EHLO mailout1.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750883AbeEBJdT (ORCPT ); Wed, 2 May 2018 05:33:19 -0400 Received: from eucas1p1.samsung.com (unknown [182.198.249.206]) by mailout1.w1.samsung.com (KnoxPortal) with ESMTP id 20180502093317euoutp013e366dc0a3d5a9ff7b40862f2b558b0f~qyhDVd__q0668306683euoutp01_; Wed, 2 May 2018 09:33:17 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com 20180502093317euoutp013e366dc0a3d5a9ff7b40862f2b558b0f~qyhDVd__q0668306683euoutp01_ DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1525253597; bh=yKe89Py+mlWqrCqAMhiCQk8I4V+Z2fYm8m/Gxh2jbmE=; h=From:To:Cc:Subject:Date:In-reply-to:References:From; b=b6bF2QDEdYIxijkxZVM9jSbRXq5e004CMzmrDsIzBqTTSlvmOFgEj9OYKV5j2v2US h5aAxZsOLseUZQEht+O53NTLi8OTib6MlXylNQqIgLxmRh9FMSQ9mtJPTQdjhJar3b XMD1CtHKaxhRCJsLPDCfXgfQQLhGCg3w8ir8sNjA= Received: from eusmges1new.samsung.com (unknown [203.254.199.242]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20180502093316eucas1p293fd079aab6a9ccee08a5bfc54a57128~qyhCu-o9z0895808958eucas1p2F; Wed, 2 May 2018 09:33:16 +0000 (GMT) Received: from eucas1p1.samsung.com ( [182.198.249.206]) by eusmges1new.samsung.com (EUCPMTA) with SMTP id 01.C3.05700.CD589EA5; Wed, 2 May 2018 10:33:16 +0100 (BST) Received: from eusmgms2.samsung.com (unknown [182.198.249.180]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20180502093316eucas1p1e7e7b2f27eae677dde9882a4aedd2ed7~qyhB-Gn7d1824218242eucas1p1G; Wed, 2 May 2018 09:33:16 +0000 (GMT) X-AuditID: cbfec7f2-1dbff70000011644-58-5ae985dc9e88 Received: from eusync3.samsung.com ( [203.254.199.213]) by eusmgms2.samsung.com (EUCPMTA) with SMTP id 6C.0D.04183.BD589EA5; Wed, 2 May 2018 10:33:15 +0100 (BST) Received: from amdc3058.localnet ([106.120.53.102]) by eusync3.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0P830032GH7FGR80@eusync3.samsung.com>; Wed, 02 May 2018 10:33:15 +0100 (BST) From: Bartlomiej Zolnierkiewicz To: Daniel Lezcano Cc: Eduardo Valentin , Zhang Rui , linux-samsung-soc@vger.kernel.org, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 11/18] thermal: exynos: add exynos*_tmu_set_[trip,hyst]() helpers Date: Wed, 02 May 2018 11:33:15 +0200 Message-id: <2658994.PYbssquHNy@amdc3058> User-Agent: KMail/4.13.3 (Linux/3.13.0-96-generic; KDE/4.13.3; x86_64; ; ) In-reply-to: <20180501095540.GH27619@mai> MIME-version: 1.0 Content-transfer-encoding: 7Bit Content-type: text/plain; charset="us-ascii" X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrAIsWRmVeSWpSXmKPExsWy7djPc7p3Wl9GGbw5Lmsx77Osxfwr11gt Lu+aw2bxufcIo8WM8/uYLJ487GNzYPPYOesuu8fiPS+ZPO5c28Pm8XmTXABLFJdNSmpOZllq kb5dAlfGvTOb2ApOcFcsXK/bwLibs4uRk0NCwESi50UraxcjF4eQwApGiRcPVzOBJIQEPjNK /NrtA1N082I7I0R8GaPErs+ZEA2/GSWad/SxgSTYBKwkJravAisSEdCTaHzfxgRSxCywilGi /9M7sKnCAuES116+YwGxWQRUJWYvnwnWzCugKTFzzVmwZlEBL4kt+9rB6jmB4nv/bYGqEZT4 MfkeWC+zgLzEvv1TWSFsHYmzx9YxgiyTEFjDJvFgy11WiLNdJL4saWWDsIUlXh3fwg5hy0hc ntzNAtHQzCjxbcceZojEBEaJPeuFIGxricPHL0Jt4JOYtG06UA0HUJxXoqMNqsRDou/kHSaI sKPE/SZBeKi8m/OdZQKj7Cwkd89CcvcsJHcvYGRexSieWlqcm55abJiXWq5XnJhbXJqXrpec n7uJEZgOTv87/mkH49dLSYcYBTgYlXh4DfJeRAmxJpYVV+YeYpTgYFYS4V3Z8SxKiDclsbIq tSg/vqg0J7X4EKM0B4uSOG+cRl2UkEB6YklqdmpqQWoRTJaJg1OqgVF4VVdS54VVE5sv9zHY vl3p9lJwmdvmnrPKy0tYN2o7pgUZ11/dIDJP2IhVzsh8zj3fx7vvxmT/Kn1fJ7Ri3e8iaaa5 zu/OP89Vv/r22I3jxwotN77M6Ku899ClSWzx0xTWVx89tptbcQRPmvLhtbHBr0UKQbEv99wI s1Iq9gosu+11fubJfh4lluKMREMt5qLiRADX7nTMAwMAAA== X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrCLMWRmVeSWpSXmKPExsVy+t/xq7q3W19GGex9Y2Mx77Osxfwr11gt Lu+aw2bxufcIo8WM8/uYLJ487GNzYPPYOesuu8fiPS+ZPO5c28Pm8XmTXABLFJdNSmpOZllq kb5dAlfGvTOb2ApOcFcsXK/bwLibs4uRk0NCwETi5sV2xi5GLg4hgSWMEr8fvmYESQgJ/GWU 2HQtHcRmE7CSmNi+CiwuIqAn0fi+jQmkgVlgFaPEytZeZpCEsEC4xOUl79lBbBYBVYnZy2ey gdi8ApoSM9ecBWsWFfCS2LKvnQnE5gSK7/23hQ1i83JGiQd75zJBNAhK/Jh8jwXEZhaQl9i3 fyorhK0lsX7ncaYJjPyzkJTNQlI2C0nZAkbmVYwiqaXFuem5xUZ6xYm5xaV56XrJ+bmbGIFh u+3Yzy07GLveBR9iFOBgVOLhNch7ESXEmlhWXJl7iFGCg1lJhHdlx7MoId6UxMqq1KL8+KLS nNTiQ4zSHCxK4rznDSqjhATSE0tSs1NTC1KLYLJMHJxSDYyR7p9ne91uk2/cvXZC06OSvZ61 R6teMBR2+PNHXS+ckPb8ZvYkIYtJO5PkDFevnn7k0RPrrEtxD6recN/Lar9pzr5Vz6D/UTPT u/qWjtu7qo5rrDXqn6rsnhnFp8jjLy3Q79Y4nWWVQPhz9/Papqe3M8oGqSc9Xzy/Y+HOibzL v4Rfys/1NVNiKc5INNRiLipOBABG1huQVwIAAA== X-CMS-MailID: 20180502093316eucas1p1e7e7b2f27eae677dde9882a4aedd2ed7 X-Msg-Generator: CA CMS-TYPE: 201P X-CMS-RootMailID: 20180502093316eucas1p1e7e7b2f27eae677dde9882a4aedd2ed7 X-RootMTR: 20180502093316eucas1p1e7e7b2f27eae677dde9882a4aedd2ed7 References: <1524743493-28113-1-git-send-email-b.zolnierkie@samsung.com> <1524743493-28113-12-git-send-email-b.zolnierkie@samsung.com> <20180501095540.GH27619@mai> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tuesday, May 01, 2018 11:55:40 AM Daniel Lezcano wrote: > On Thu, Apr 26, 2018 at 01:51:26PM +0200, Bartlomiej Zolnierkiewicz wrote: > > Add exynos*_tmu_set_[trip,hyst]() helpers and convert > > all ->tmu_initialize implementations accordingly. > > > > Signed-off-by: Bartlomiej Zolnierkiewicz > > --- > > drivers/thermal/samsung/exynos_tmu.c | 282 +++++++++++++++++------------------ > > 1 file changed, 140 insertions(+), 142 deletions(-) > > > > diff --git a/drivers/thermal/samsung/exynos_tmu.c b/drivers/thermal/samsung/exynos_tmu.c > > index 82484c5..80265d2 100644 > > --- a/drivers/thermal/samsung/exynos_tmu.c > > +++ b/drivers/thermal/samsung/exynos_tmu.c > > @@ -305,30 +305,6 @@ static void sanitize_temp_error(struct exynos_tmu_data *data, u32 trim_info) > > EXYNOS_TMU_TEMP_MASK; > > } > > [ ... ] > > > +static void exynos4210_tmu_set_trip_temp(struct exynos_tmu_data *data, > > + int trip, u8 temp) > > +{ > > + const struct thermal_trip * const trips = > > + of_thermal_get_trip_points(data->tzd); > > + u8 ref, th_code; > > I would not do this kind of change (unsigned long => u8) with this patch. > Just code reorg and another patch to tweak the variable types if needed. This is so minor change and it is has been already tested so I prefer to not split it from this patch now. Best regards, -- Bartlomiej Zolnierkiewicz Samsung R&D Institute Poland Samsung Electronics