Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp770290rwl; Fri, 31 Mar 2023 02:02:30 -0700 (PDT) X-Google-Smtp-Source: AKy350bql0atMBi82KbYT0Q2wxIpSrpAnZqtUw580LnCy88HW5TP+HYkViAUZIZF09fwB6BjUHE8 X-Received: by 2002:a05:6402:2803:b0:502:e50:3358 with SMTP id h3-20020a056402280300b005020e503358mr5782694ede.3.1680253350724; Fri, 31 Mar 2023 02:02:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680253350; cv=none; d=google.com; s=arc-20160816; b=nUeJ36KjY9PzgOCaM5ynN/jd6kX07Y8TI/eHWL9977L4X776sGZ/m/MFCj+NWqmFQK tar8tdAVqZuQN4w6VFNmS7GV4e3tL8K8EuMZkN9ZaV+FVt9Gxe3exBK9hp0OcwvLaJhg 5G6GF31L/CF9sW+18aZ3g5gHUTqnz7ol/ZHSMeDH/LTQRg/zYtBocqiAJ4F6EYzr0ji9 Yhd0nKvS46Xx2SyBLoWL7gXWUmiGwfMpGNZ4/FHfJARZ7xgfcQ9AWskSh7V8R53/NUYG md5g7nzAK1ydFpTnAFdwEEHSFKPigDc9IcTKC1/ecGKR/m8zU5wLkt+I9BwVJp6XlJHp 2W7w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :mime-version:accept-language:in-reply-to:references:message-id:date :thread-index:thread-topic:subject:cc:to:from; bh=gPCW6nkohp6S6JTdMczHQ5RABSx4CnZ+n7jFSBx3fuQ=; b=dcBV7AddODepNJ5+Nxtl0zqo1MZT4VJTsYB6SvuEd5vrUmfQ70r+DoVCKVyRK4+OZw 9LyLv6PMzj1D/3nLcw5FAkNDn25oJMDX2u/m8HyuEL/w6rljVSLN6HeASYLu4BtDSh8/ D9ISbVmWVmqCZLf3eGwIVthXP/gsYB+BQZgODJDMWT+rltfoONFHsbagOP3I7z7X+7CN /g12TqqyP00I92O5mtyrRqd87ZM711y/pEZ6E05JYSux2CvG0pXIKQLT7fD6VtqPWvTg HDr8H2ZY0kcWiEVv8KwJB929BZeMtDXScw1ieEgzNZlhkOpIw2nliuECvS5QUHLKtzal Xgow== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=aculab.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q9-20020a170906770900b0092fc8edf6b1si1662741ejm.439.2023.03.31.02.01.57; Fri, 31 Mar 2023 02:02:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=aculab.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231250AbjCaI7A (ORCPT + 99 others); Fri, 31 Mar 2023 04:59:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40192 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230147AbjCaI64 (ORCPT ); Fri, 31 Mar 2023 04:58:56 -0400 Received: from eu-smtp-delivery-151.mimecast.com (eu-smtp-delivery-151.mimecast.com [185.58.85.151]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5D62B93D8 for ; Fri, 31 Mar 2023 01:58:49 -0700 (PDT) Received: from AcuMS.aculab.com (156.67.243.121 [156.67.243.121]) by relay.mimecast.com with ESMTP with both STARTTLS and AUTH (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id uk-mta-244-VN9U7afANy2G9I0ztqm7nA-1; Fri, 31 Mar 2023 09:58:44 +0100 X-MC-Unique: VN9U7afANy2G9I0ztqm7nA-1 Received: from AcuMS.Aculab.com (10.202.163.4) by AcuMS.aculab.com (10.202.163.4) with Microsoft SMTP Server (TLS) id 15.0.1497.48; Fri, 31 Mar 2023 09:58:43 +0100 Received: from AcuMS.Aculab.com ([::1]) by AcuMS.aculab.com ([::1]) with mapi id 15.00.1497.048; Fri, 31 Mar 2023 09:58:43 +0100 From: David Laight To: "'Rafael J. Wysocki'" , Jiangshan Yi CC: "rui.zhang@intel.com" , "lenb@kernel.org" , "linux-acpi@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "13667453960@163.com" <13667453960@163.com> Subject: RE: [PATCH] ACPI: thermal: replace ternary operator with min_t() Thread-Topic: [PATCH] ACPI: thermal: replace ternary operator with min_t() Thread-Index: AQHZYyq+oyUap8XuYUy0mbivn7h4t68UlpOA Date: Fri, 31 Mar 2023 08:58:42 +0000 Message-ID: <8781eb11ce42448aa9cd206168cb22db@AcuMS.aculab.com> References: <20230328031629.202268-1-yijiangshan@kylinos.cn> In-Reply-To: Accept-Language: en-GB, en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-exchange-transport-fromentityheader: Hosted x-originating-ip: [10.202.205.107] MIME-Version: 1.0 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: aculab.com Content-Language: en-US Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: base64 X-Spam-Status: No, score=0.0 required=5.0 tests=RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org RnJvbTogUmFmYWVsIEouIFd5c29ja2kNCj4gU2VudDogMzAgTWFyY2ggMjAyMyAxODoxMg0KPiA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ICAgICAgICAgICAgICAgICAgICAgICAgICh0ei0+dHJpcHMuYWN0aXZlW2ktMl0udGVt cGVyYXR1cmUgPA0KPiA+IC0gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgIGNlbHNpdXNfdG9fZGVjaV9rZWx2aW4oYWN0KSA/DQo+ID4gLSAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgdHotPnRyaXBzLmFjdGl2ZVtpLTJdLnRl bXBlcmF0dXJlIDoNCj4gPiAtICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICBjZWxzaXVzX3RvX2RlY2lfa2VsdmluKGFjdCkpOw0KPiA+ICsgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIG1pbl90KHVuc2lnbmVkIGxvbmcsDQo+ ID4gKyAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg dHotPnRyaXBzLmFjdGl2ZVtpLTJdLnRlbXBlcmF0dXJlLA0KPiA+ICsgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGNlbHNpdXNfdG9fZGVjaV9rZWx2 aW4oYWN0KSk7DQo+ID4NCj4gPiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGJyZWFr Ow0KPiA+ICAgICAgICAgICAgICAgICAgICAgICAgIH0gZWxzZSB7DQo+ID4gLS0NCj4gPiAyLjI1 LjENCj4gPg0KDQotDQpSZWdpc3RlcmVkIEFkZHJlc3MgTGFrZXNpZGUsIEJyYW1sZXkgUm9hZCwg TW91bnQgRmFybSwgTWlsdG9uIEtleW5lcywgTUsxIDFQVCwgVUsNClJlZ2lzdHJhdGlvbiBObzog MTM5NzM4NiAoV2FsZXMpDQo=