Received: by 2002:a05:6359:6284:b0:131:369:b2a3 with SMTP id se4csp3344576rwb; Mon, 7 Aug 2023 11:57:28 -0700 (PDT) X-Google-Smtp-Source: AGHT+IE5jYff5kSIhpGwYXl1AgrC2MwirkS9jTCR+kWKLfcuc3ESBfUeEN+ZIQpHOcq5FEy+HxjL X-Received: by 2002:a05:6808:e88:b0:3a7:3ce0:1ad7 with SMTP id k8-20020a0568080e8800b003a73ce01ad7mr10914256oil.20.1691434648131; Mon, 07 Aug 2023 11:57:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691434648; cv=none; d=google.com; s=arc-20160816; b=IkqgRzmVdQevKX4JTWTsoXQ+bNPOWlpzhLMPimDQn963AA+CEoKHSl6Nz3Tpm/HgxW 51zhHtdN5Zb6gUHy8FrbgH4iyR3nGXTF1IYLo7OKvXCDsDaEMRnp2g1LpOEuXxgd1m30 +OWnI6A/HonWSQsVIlw8NCFtaiNRKGssuIOwmzIJGv23wGR4jSKV2I084wWTNR1LmumJ valdSnMjjrHz1/UeFT2H59f9XFhag21oZegaaaezDEkTiHoKu89vemOpvTRNw9HmnOFM jjpkifEZ/dKZD/MIg2beTxvHpPfVjxSIhhnc1ljfeUEeFImXjpjhuynSCB7s/C85CoAq hs0g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=x+nUiT4LNTuhVDhakYxY8r6RyircwGa0O7Pbub0LaWg=; fh=jABj5v2rHKw019HO9Ag6891M+lPZ6d+O4eAkd8el8mQ=; b=R+n/NEBxLx/gY9eyyHBgoCH65ADOXcGoJe7WtdFIixLPwz2E7L9EWUfmWiGyllS57I 2AMhjT6lUXUX/vjUlsSNlFJH3tTmCy9yWGFdHG4a+/cfINAtK1GCkjuUC4V2rWdVIJkw rA8KMwFyIilE+vsE5AwTpUn7+Yf9v4gmnxdSZWPSEfajjD0NOFQwHhgG7Z3WL8gIhB9l TmPC6Ka2NbTib4MZ4bkNKRBBK0wjiNTq6AmOyy6bitg5cREJxH1POxT/CIFYj9U8H2Qi PabsvWcz+gKSiOClqjnD9S/M/BxDAzjI2VUo2dA/cYi8fHlvVSCVuEfe1VFSqfdsSfUn WBnw== 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l131-20020a633e89000000b00564b5fcf388si6016468pga.332.2023.08.07.11.57.16; Mon, 07 Aug 2023 11:57:28 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229894AbjHGSV0 (ORCPT + 99 others); Mon, 7 Aug 2023 14:21:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53362 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231153AbjHGSVD (ORCPT ); Mon, 7 Aug 2023 14:21:03 -0400 Received: from cloudserver094114.home.pl (cloudserver094114.home.pl [79.96.170.134]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A7C02194; Mon, 7 Aug 2023 11:21:01 -0700 (PDT) Received: from localhost (127.0.0.1) (HELO v370.home.net.pl) by /usr/run/smtp (/usr/run/postfix/private/idea_relay_lmtp) via UNIX with SMTP (IdeaSmtpServer 5.2.0) id 5eb1f2393699e2aa; Mon, 7 Aug 2023 20:20:59 +0200 Authentication-Results: v370.home.net.pl; spf=softfail (domain owner discourages use of this host) smtp.mailfrom=rjwysocki.net (client-ip=195.136.19.94; helo=[195.136.19.94]; envelope-from=rjw@rjwysocki.net; receiver=) Received: from kreacher.localnet (unknown [195.136.19.94]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by v370.home.net.pl (Postfix) with ESMTPSA id 510F86625B2; Mon, 7 Aug 2023 20:20:59 +0200 (CEST) From: "Rafael J. Wysocki" To: Linux ACPI , Daniel Lezcano Cc: LKML , Linux PM , Michal Wilczynski , Zhang Rui , Srinivas Pandruvada Subject: [PATCH v5 03/11] thermal: core: Add priv pointer to struct thermal_trip Date: Mon, 07 Aug 2023 20:04:47 +0200 Message-ID: <2896662.e9J7NaK4W3@kreacher> In-Reply-To: <4503814.LvFx2qVVIh@kreacher> References: <13318886.uLZWGnKmhe@kreacher> <4503814.LvFx2qVVIh@kreacher> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="UTF-8" X-CLIENT-IP: 195.136.19.94 X-CLIENT-HOSTNAME: 195.136.19.94 X-VADE-SPAMSTATE: clean X-VADE-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedviedrledtgdduudejucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecujffqoffgrffnpdggtffipffknecuuegrihhlohhuthemucduhedtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjughrpefhvfevufffkfgjfhgggfgtsehtufertddttdejnecuhfhrohhmpedftfgrfhgrvghlucflrdcuhgihshhotghkihdfuceorhhjfiesrhhjfiihshhotghkihdrnhgvtheqnecuggftrfgrthhtvghrnhepvdffueeitdfgvddtudegueejtdffteetgeefkeffvdeftddttdeuhfegfedvjefhnecukfhppeduleehrddufeeirdduledrleegnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehinhgvthepudelhedrudefiedrudelrdelgedphhgvlhhopehkrhgvrggthhgvrhdrlhhotggrlhhnvghtpdhmrghilhhfrhhomhepfdftrghfrggvlhculfdrucghhihsohgtkhhifdcuoehrjhifsehrjhifhihsohgtkhhirdhnvghtqedpnhgspghrtghpthhtohepjedprhgtphhtthhopehlihhnuhigqdgrtghpihesvhhgvghrrdhkvghrnhgvlhdrohhrghdprhgtphhtthhopegurghnihgvlhdrlhgviigtrghnoheslhhinhgrrhhordhorhhgpdhrtghpthhtoheplhhinhhugidqkhgvrhhnvghlsehvghgvrhdrkhgvrhhnvghlrdhorhhgpdhrtghpthhtoheplhhinhhugidqphhmsehvghgvrhdrkhgvrhhnvghlrdhorhhgpdhrtghp thhtohepmhhitghhrghlrdifihhltgiihihnshhkihesihhnthgvlhdrtghomhdprhgtphhtthhopehruhhirdiihhgrnhhgsehinhhtvghlrdgtohhm X-DCC--Metrics: v370.home.net.pl 1024; Body=7 Fuz1=7 Fuz2=7 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS autolearn=ham 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 From: Rafael J. Wysocki Add a new field called priv to struct thermal_trip to allow thermal drivers to store pointers to their local data associated with trip points. Signed-off-by: Rafael J. Wysocki Acked-by: Daniel Lezcano --- v4 -> v5: ACK from Daniel. New patch in v4. --- include/linux/thermal.h | 2 ++ 1 file changed, 2 insertions(+) Index: linux-pm/include/linux/thermal.h =================================================================== --- linux-pm.orig/include/linux/thermal.h +++ linux-pm/include/linux/thermal.h @@ -82,11 +82,13 @@ struct thermal_zone_device_ops { * @temperature: temperature value in miliCelsius * @hysteresis: relative hysteresis in miliCelsius * @type: trip point type + * @priv: pointer to driver data associated with this trip */ struct thermal_trip { int temperature; int hysteresis; enum thermal_trip_type type; + void *priv; }; struct thermal_cooling_device_ops {