Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp909271rdb; Wed, 6 Dec 2023 03:35:55 -0800 (PST) X-Google-Smtp-Source: AGHT+IEu5n4YTqlVW7TNgmgSn4rpZZy4IW2XMtfQ/u09S2+C918XU0mlJjIDXoLgCG7feVDlpWtT X-Received: by 2002:a17:90a:e7c3:b0:286:1e90:fe2f with SMTP id kb3-20020a17090ae7c300b002861e90fe2fmr961622pjb.15.1701862554857; Wed, 06 Dec 2023 03:35:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701862554; cv=none; d=google.com; s=arc-20160816; b=Z9B3kAFJEWuO1YoqTJSs2HtVQXlIY/et4HxOuzcRlmFY6EaGhkr4X/ymujuNlxSw/v 8vMDdbTf4ka3YKry79Heh+AA5PO3CEXIGDE1ALezYwM9uxsMDqiVFvaCz0KWuY492zxV vOoT+cPpPGjSTAXTfGz0QI7uJBOfFIHv7eiC3fQ9phLVRWCSrlHCGrjye+kA9YyozzVK Jt+T3q5LpvUVUVuwqQ4TQPwqY/mkPGnIH2wVVpjl+NNOHe+Xx0SquQFkUOKBfc+9Udoh 7H+nd1MPz0X293KsObUjcx2bhaQqTHDpQGcxGi+AiTDuzJSetbQJ8BIPZ5755h1S3yvh nrzA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=YFi3RIKaDzGCbVA6KICHAZ/fzez2DnzNL78+4AOaMUg=; fh=WD3PUBwbKW+eURwNczkCMPvWicegbE0hVFODSxn7LTw=; b=Lf15IxMSmPGy7W8bEnjGbh1LrxF8gYWErDIomMP1axq4HiE7k/jtd3mz++eCczKgjU l4EB6rVYfRWuP+3tnyZPlrKVAMtY5vQgSVHP5Y8FYI6pD0M9o7wQ2f7gomoFXAWb6uL3 n5eHyN9eLiOReh9hARKQEYgPPpe632euWcq6K/B6qY8qzDpt7HTDqu8FXVXam22HS2j+ 0q8S4fJd+V7zRklB1EYzusA9Dk+y42/JsX/TqegfFobdAPhpIext//N39vkW5Lj7vwWH fUZlgZB5AoWIrk8/LDJQpK0Srn6Ej3+XaTNtmsUgFpsZhG27H8iG0TMa506ZQM1olVRj x6Mw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=qTEqmaQl; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from howler.vger.email (howler.vger.email. [23.128.96.34]) by mx.google.com with ESMTPS id 30-20020a17090a09a100b00286ce8ab125si1238458pjo.0.2023.12.06.03.35.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Dec 2023 03:35:54 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) client-ip=23.128.96.34; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=qTEqmaQl; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id C6E6080E6FA3; Wed, 6 Dec 2023 03:35:50 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1377617AbjLFLfa (ORCPT + 99 others); Wed, 6 Dec 2023 06:35:30 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41510 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1377543AbjLFLf3 (ORCPT ); Wed, 6 Dec 2023 06:35:29 -0500 Received: from mail-wr1-x429.google.com (mail-wr1-x429.google.com [IPv6:2a00:1450:4864:20::429]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4D48A10A for ; Wed, 6 Dec 2023 03:35:33 -0800 (PST) Received: by mail-wr1-x429.google.com with SMTP id ffacd0b85a97d-3333224c7b9so617874f8f.1 for ; Wed, 06 Dec 2023 03:35:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1701862532; x=1702467332; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=YFi3RIKaDzGCbVA6KICHAZ/fzez2DnzNL78+4AOaMUg=; b=qTEqmaQl4jQyV1WEhUon5myflgy8sP2JOUSQ6KuBtPZkZ+M5SRZLG1dAkN+1RI8M3a rNn1R9eB53QSvSYt5eG/ESGyOTDkGs4UyWf88zocXArcpjjgDLx+PvqMkRHParzXLOSf ECDF3iPULQvsthKH9zsAzHSHRtrhVWQKm2KLIRPEi56K8d1idqS7SpRIp5F8Qz4rJNOS stFERw5W/XfGslakE7wblcBg5CO22HNgh3N/EKBYvJ905hJ/rBTOO7vPf3EdckG9LfWM 3Qjgx/MtZq05kFBNPJU9KaHnflTue0JZpQHK79VOTsK49qWYf919vjBRQCoAOv0aQaBf d4NA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701862532; x=1702467332; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=YFi3RIKaDzGCbVA6KICHAZ/fzez2DnzNL78+4AOaMUg=; b=av8ZelEHWnT0QRBZU2rnbotiQSm221xI44cB91iFofzIr2+s2gJcQLO0/Mv+WWfCsk dWWDCYKTBVrzEbbjPXeCSjy+mmDVYKkxcVA1oUYADjGeMegimVlRJMPUh45JvVZKNgto I+EWDO5qn9/8WrkboYIrnaqlDEfE6JePzscA26w/fElgfZP0SY/dz8voE1zpiLewPS6c 4rfv0TNE6fbwLOT9vJENEZ8gJfmTeq5734kdPjiIxRSaeLFfK584FKvE4TjDRreKgtc0 lcyA7wUG/T7/jgUToqtsiMj7j5+E81ZYRsUDnkn12wVT7VIZz+Oc5oV0ieA5WBAknoL9 oiyg== X-Gm-Message-State: AOJu0Yzpq8hPxvlIjvPjHlxALpw0LRK8fYII9A66N3PlKeozAjJN4i4n qLughyvCmLtFVkHuQpgny35nnA== X-Received: by 2002:adf:f686:0:b0:333:5446:922a with SMTP id v6-20020adff686000000b003335446922amr432257wrp.32.1701862531641; Wed, 06 Dec 2023 03:35:31 -0800 (PST) Received: from ?IPV6:2a05:6e02:1041:c10:c49e:e1a5:3210:b8c0? ([2a05:6e02:1041:c10:c49e:e1a5:3210:b8c0]) by smtp.googlemail.com with ESMTPSA id q18-20020a05600000d200b003334041c3edsm9983744wrx.41.2023.12.06.03.35.31 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 06 Dec 2023 03:35:31 -0800 (PST) Message-ID: <54af71bb-60e8-4f9c-84d5-0d741e6964c8@linaro.org> Date: Wed, 6 Dec 2023 12:35:30 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v4 2/2] thermal: sysfs: Rework the reading of trip point attributes Content-Language: en-US To: "Rafael J. Wysocki" , Lukasz Luba Cc: Linux PM , LKML , Srinivas Pandruvada , Zhang Rui References: <12337662.O9o76ZdvQC@kreacher> <4854305.GXAFRqVoOG@kreacher> From: Daniel Lezcano In-Reply-To: <4854305.GXAFRqVoOG@kreacher> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on howler.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Wed, 06 Dec 2023 03:35:51 -0800 (PST) On 05/12/2023 13:26, Rafael J. Wysocki wrote: > From: Rafael J. Wysocki > > Rework the _show() callback functions for the trip point temperature, > hysteresis and type attributes to avoid copying the values of struct > thermal_trip fields that they do not use and make them carry out the > same validation checks as the corresponding _store() callback functions. > > No intentional functional impact. > > Signed-off-by: Rafael J. Wysocki > --- > > v3 -> v4: Don't check trip_id against boundaries in the _show routines > for trip type, temperature and hysteresis (Daniel). > > v2 -> v3: Drop a redundant 'ret' check at the end of trip_point_hyst_show. > > v1 -> v2: Do not drop thermal zone locking from the _store() callback functions. > > --- Reviewed-by: Daniel Lezcano -- Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog