Received: by 2002:a05:6359:6284:b0:131:369:b2a3 with SMTP id se4csp397286rwb; Fri, 4 Aug 2023 14:49:51 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFPg2ZI96DDWm1v6iAY4L4W9pExYvn1A0IL2huDY13tyBlEdsIlxtfWcMZB9dakTa+JWLub X-Received: by 2002:a17:903:230b:b0:1bc:2c58:ad97 with SMTP id d11-20020a170903230b00b001bc2c58ad97mr3519726plh.22.1691185790808; Fri, 04 Aug 2023 14:49:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691185790; cv=none; d=google.com; s=arc-20160816; b=FofqigQpeYZfksZdmSPBSN73Iy0DXmWpRtVOuHvvYxhmqxbWxVpymzAvHbpb5kb6Q9 zFRXJHNQYeuzWY6z3xPoiNSUy+RIJ6/rbko5/kS3weX0xLsiUFJl+9qEBr9WEK+xl7N6 e5zrkB5A3IiujfasRhCWL1v6xV7g4cZIvzsAhnbIsOWRO21z2s5Lg1BcWEvXrdr8GIT0 v2IvCUN4e/4b9sBTlmNKUWEOPu5tPDUSlT/NZoxwhihwdSpR2MCi5AMF6o5GVwXoLmM7 nSPDgBsA6PD0n9AtUCGYBTXWDJvvHVBDf/D+J6v9GWASeCHu5qnwEB7GDNIpdonEOuRe 9HJw== 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=ex8ATw85Z0vRp/Ys9DOd5sAhBbnyk8Rj1+rB7gv2tDg=; fh=jABj5v2rHKw019HO9Ag6891M+lPZ6d+O4eAkd8el8mQ=; b=E5vxAXSJ/eZ2c9xhXpvauyAGom0ar+M639tug4tpOr9qiMjaQWAYP1sToolgYBr1fK PoAQEqxm6FCJlMIEg2RPVNjvFPwpraST5efyndI+o8xi3ApvuVg1t/V7g/rI9vt2IfEH y7KQaVV5HYLLvSw65GiLCXYj58aIBvboOAcePKasNcuVwVuqWWK61b2rNCFvhTqRFqzh E8JSk9DBFtk1H3SNdcdOHZ3qlhDAcScqzAzF9T+/NKCwHoRUXvmwlcYWW2Tt8dVJOd3b fXxGsMaoC9UZchW5UyX4zrSGj80N5HoNmHXgj0mSXlrJ8drXjNZl9zWUpzfmmGwfjUsa B6Gg== 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 w3-20020a170902e88300b001b829a32f2dsi2359478plg.457.2023.08.04.14.49.37; Fri, 04 Aug 2023 14:49:50 -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 S229686AbjHDV0c (ORCPT + 99 others); Fri, 4 Aug 2023 17:26:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44086 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230054AbjHDV0N (ORCPT ); Fri, 4 Aug 2023 17:26:13 -0400 Received: from cloudserver094114.home.pl (cloudserver094114.home.pl [79.96.170.134]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6704C2D7E; Fri, 4 Aug 2023 14:26:11 -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 dec5b0a88e15fbd9; Fri, 4 Aug 2023 23:26:09 +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 38F00661680; Fri, 4 Aug 2023 23:26:09 +0200 (CEST) From: "Rafael J. Wysocki" To: Linux ACPI , Daniel Lezcano Cc: LKML , Linux PM , Michal Wilczynski , Zhang Rui , Srinivas Pandruvada Subject: [PATCH v4 03/10] thermal: core: Add priv pointer to struct thermal_trip Date: Fri, 04 Aug 2023 23:04:53 +0200 Message-ID: <10344810.nUPlyArG6x@kreacher> In-Reply-To: <4878513.31r3eYUQgx@kreacher> References: <13318886.uLZWGnKmhe@kreacher> <4878513.31r3eYUQgx@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: gggruggvucftvghtrhhoucdtuddrgedviedrkeeggdduheekucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecujffqoffgrffnpdggtffipffknecuuegrihhlohhuthemucduhedtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjughrpefhvfevufffkfgjfhgggfgtsehtufertddttdejnecuhfhrohhmpedftfgrfhgrvghlucflrdcuhgihshhotghkihdfuceorhhjfiesrhhjfiihshhotghkihdrnhgvtheqnecuggftrfgrthhtvghrnhepvdffueeitdfgvddtudegueejtdffteetgeefkeffvdeftddttdeuhfegfedvjefhnecukfhppeduleehrddufeeirdduledrleegnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehinhgvthepudelhedrudefiedrudelrdelgedphhgvlhhopehkrhgvrggthhgvrhdrlhhotggrlhhnvghtpdhmrghilhhfrhhomhepfdftrghfrggvlhculfdrucghhihsohgtkhhifdcuoehrjhifsehrjhifhihsohgtkhhirdhnvghtqedpnhgspghrtghpthhtohepjedprhgtphhtthhopehlihhnuhigqdgrtghpihesvhhgvghrrdhkvghrnhgvlhdrohhrghdprhgtphhtthhopegurghnihgvlhdrlhgviigtrghnoheslhhinhgrrhhordhorhhgpdhrtghpthhtoheplhhinhhugidqkhgvrhhnvghlsehvghgvrhdrkhgvrhhnvghlrdhorhhgpdhrtghpthhtoheplhhinhhugidqphhmsehvghgvrhdrkhgvrhhnvghlrdhorhhgpdhrtghp 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 --- 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 {