Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp1353670imw; Tue, 5 Jul 2022 08:03:12 -0700 (PDT) X-Google-Smtp-Source: AGRyM1sqH47a/kXCAEp4ZObiOVERGutwqCNtFIUX2RGdMC0RWPgzZNT5p/XzIbQDc6nyF2XhfmJL X-Received: by 2002:a17:902:e54a:b0:16a:3e90:3cdc with SMTP id n10-20020a170902e54a00b0016a3e903cdcmr40529549plf.38.1657033392165; Tue, 05 Jul 2022 08:03:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657033392; cv=none; d=google.com; s=arc-20160816; b=zffnC5Zd7NkG5WUhdA470g2v52VLoRzgabRjqxsIiqIKrdAST4zJC+DnnFw7LxGkr+ 6OgzntDgWUXOoEKWEon4DBKn/ugQmJmW8RGX9gR6BDmlHBwjepKtvfj4yrPrd+K31nPw j6WYbT/R2wahvPdetwfKR71OQNQTFhiN13cvLf4gZkk4XigB7y/4A9VbpbAvPeh/UNt1 PFR8dAlUdjSXKDodL87M95ijX/4sHzMaRD/+NL0C2jaE/T3zIcpmKyl4C1Bcq8XEV9Nb JpCPphp8AdKnPZZpzUchTKqALUNe2Mk0P/H5nUXS1gl6/8w6+ivrTeIqu4qigyTwHksf JgpQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version; bh=AqO40ahfFXskUpsKZnggDHc6rPHVEzHIC9njxd0juUo=; b=ErkkV5qh5cal+rVPNS4DtA6wPrsbAyClBkEe/WxCl/BIEjBZfkz+nS9Goayx3/SPXI CWCaKk1rHRs6DBe3XMcAUEFZXO84XP4z5rUbWPRJ8QzvQV3q/aj+21pfPwqdfMPAqzDP vw4iXk3kPfOG/kDaGn4BrXEc/+rXfUVKCSDERRydjpegAAb5O+BI0hGXrPgba9ImLiaQ ioSxx2R9Ls6IKvaUoThTzI4xDd91AVTDc4k3BB4iWnpa5oyOpKF6q/ab8DaVt3j/JHI0 o5eQfLBYCzZ8/KuYi83ZS8Lo5Opkht2F30FWVghXbkhcBD9Tse0E/sB23wjegdCdSi1O Oakg== 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h191-20020a636cc8000000b0040de29f0800si26583007pgc.822.2022.07.05.08.02.59; Tue, 05 Jul 2022 08:03:12 -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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230264AbiGEOJw (ORCPT + 99 others); Tue, 5 Jul 2022 10:09:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59742 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232956AbiGEOJd (ORCPT ); Tue, 5 Jul 2022 10:09:33 -0400 Received: from mail-yb1-f173.google.com (mail-yb1-f173.google.com [209.85.219.173]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2532A1F61D; Tue, 5 Jul 2022 07:00:02 -0700 (PDT) Received: by mail-yb1-f173.google.com with SMTP id e80so14725875ybb.4; Tue, 05 Jul 2022 07:00:02 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=AqO40ahfFXskUpsKZnggDHc6rPHVEzHIC9njxd0juUo=; b=MZh5C7h8F6atBwj0xy9VV1e0OsUVUDv5CC5MYRUnfr8fj1Dc+CUruf0Pu9juFcGH5G GKF0YQln5RrNXZjg7CH8hesW0namVwTioNvXK1kc+cJ6IvS2HanXKURuhqR5i7SqmaMN t/QDKlVq+Ua5h6zkcJ50d9gD2uUpyY4KvPKJlFmzaYe8FrJRqNz+M+kb14DFIok4e7S/ xv+kHRUzbifXa53g8SAtvaMzXdpTuAF4xjL5dS3fKJuDGNoGyz07ZWBNE4SNlmvj5VsQ Mfgs0ptxLO3zb/dq/CxooFc9HGxU7P3pA1CpuuS2DXCcuT+b64RBCDEWfSw7jSMHZQpq qo/w== X-Gm-Message-State: AJIora/FuWkr76mD+VE/6kEutDnR0ewNCLeKM/58sCslFRl5oX8Ff7Tj lJ7SwSmEU5WzaYjKyD5BsVZjSxDOkKbzCyxGNik= X-Received: by 2002:a25:6b50:0:b0:64f:4b33:664 with SMTP id o16-20020a256b50000000b0064f4b330664mr39562352ybm.153.1657029601366; Tue, 05 Jul 2022 07:00:01 -0700 (PDT) MIME-Version: 1.0 References: <20220703183059.4133659-1-daniel.lezcano@linexp.org> <20220703183059.4133659-10-daniel.lezcano@linexp.org> <3ec41dbb1e0586841bd7f0ca9ef34d6e4fbbca58.camel@intel.com> In-Reply-To: <3ec41dbb1e0586841bd7f0ca9ef34d6e4fbbca58.camel@intel.com> From: "Rafael J. Wysocki" Date: Tue, 5 Jul 2022 15:59:48 +0200 Message-ID: Subject: Re: [PATCH v3 09/12] thermal/core: Register with the trip points To: Zhang Rui Cc: Daniel Lezcano , Daniel Lezcano , "Rafael J. Wysocki" , Linux PM , Linux Kernel Mailing List , Kevin Hilman , Alexandre Bailon , Amit Kucheria Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.4 required=5.0 tests=BAYES_00, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=no 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 On Tue, Jul 5, 2022 at 4:03 AM Zhang Rui wrote: > > On Sun, 2022-07-03 at 20:30 +0200, Daniel Lezcano wrote: > > As we added the thermal trip points structure in the thermal zone, > > let's extend the thermal zone register function to have the thermal > > trip structures as a parameter and store it in the 'trips' field of > > the thermal zone structure. > > Just FYI. > > I proposed a small topic for this year' LPC about the > thermal_zone_device_register() parameters. > We have more and more parameters introduced, IMO, it's better to use a > unified structure for registration phase configurations, or reuse > struct thermal_zone_params. > In this way, when a new parameter is needed, we only need to introduce > a new field in the structure, rather than update every caller of this > API, or introduce new wrapper functions like we did in this patch. Sounds reasonable to me.