From patchwork Fri Sep 24 12:43:48 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg Kroah-Hartman X-Patchwork-Id: 514564 Delivered-To: patch@linaro.org Received: by 2002:a17:906:f46:0:0:0:0 with SMTP id h6csp1253890ejj; Fri, 24 Sep 2021 06:03:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz2ugo9uJ/I/efwkoChbYB9S1KTVqTT/7hfciff+i7whm8Mz0Hb45MWksibgU0W+EsyYBjg X-Received: by 2002:a5e:c20c:: with SMTP id v12mr8775154iop.46.1632488602343; Fri, 24 Sep 2021 06:03:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632488602; cv=none; d=google.com; s=arc-20160816; b=lYgK1fWtyCkVivfeWie8utupcqkW7eiSdq/MHywwqJUWtTkJKJsT87UWUfbmy2zyNs WeeeHR8HppCROEQ333dTbNOoBz2w/1IFA4/i9ahdrnMCmbMmp5XBKUpBndoSmmY+/0CS sYkDb23tFAYGvTnvgklaGPlDakjk+DL6xDTfiErGk58KEYvyGHCEGPGa8tpmqtZwHQIw ZLJFsAvLIRFku8Ua5tjs6IcgMD0D4llSlNSrv2SebVQV7zAdV26RizOWn0j8LeYVKD7a tDUbIjvErYO/3GBTR1n4fRYg23xE66XZWvGry7B1mu4NQUnbXwJtwTpd4h7rBoIT/9yi N8og== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=Ah3ZRbOkZYNtkPl46uJ7/m6JTUITUBS8zaF0C0d1Nyw=; b=AF1PO2lx2TKAgCBO52Q90SXvTlLr5BV8ohJoqtR8Oh259AX77j36wZOohBFd3/M+SC aar1H4Ysqur6YR2st4kc1SrZYxa0/FgQO1maTs1gxE0cW0HpmWEwEtnrJgDuEgxK8Aib qI6eLG7Fxhb50i9q7ilzUjxtgbNTkut8qvZTAfcKVGz1PGEEP3V0nvFLVoZFbatuK8AT +b/4N5aQX36qjYnLqI/yDvANbYdnluRNngYcoY8p1vo2jpXIyQr3yrWWabNnLekwFNJp /HMPEIqzv/U9uM6BNSadmrWLcuRC1Yj9Mw/rlvOSYXDdnT24HBZuCBbAPjCHHiCrGIpJ 0MNA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=hrQ7uXY9; spf=pass (google.com: domain of stable-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=stable-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h15si9756452jaa.28.2021.09.24.06.03.21; Fri, 24 Sep 2021 06:03:22 -0700 (PDT) Received-SPF: pass (google.com: domain of stable-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=hrQ7uXY9; spf=pass (google.com: domain of stable-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=stable-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345440AbhIXNDz (ORCPT + 11 others); Fri, 24 Sep 2021 09:03:55 -0400 Received: from mail.kernel.org ([198.145.29.99]:59408 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345745AbhIXNBw (ORCPT ); Fri, 24 Sep 2021 09:01:52 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 4CDA36140F; Fri, 24 Sep 2021 12:54:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1632488066; bh=YN4sg+A4COQS9FIG8U7VhzOngajLK+jzTcdur6B65n0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=hrQ7uXY9y1Qvm2wknaHaxYqmGX49MpDnIpy0f8f+CObsZ5Tx9VQjdBt4qU/bKaXtu pbZXRYWwDgrkuXC73fnECblbvtdjz9W4vpSRcoQo6uBa8kUer+t7C/jaSKtuwYOdMg HDsSatmmDgwdhv6RNZEMtuY0OyOUZYyI0xFJqV5g= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Masami Hiramatsu , "Steven Rostedt (VMware)" , Sasha Levin Subject: [PATCH 5.14 039/100] tools/bootconfig: Fix tracing_on option checking in ftrace2bconf.sh Date: Fri, 24 Sep 2021 14:43:48 +0200 Message-Id: <20210924124342.767754659@linuxfoundation.org> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20210924124341.214446495@linuxfoundation.org> References: <20210924124341.214446495@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org From: Masami Hiramatsu [ Upstream commit 32ba9f0fb027cc43074e3ea26fcf831adeee8e03 ] Since tracing_on indicates only "1" (default) or "0", ftrace2bconf.sh only need to check the value is "0". Link: https://lkml.kernel.org/r/163077087144.222577.6888011847727968737.stgit@devnote2 Fixes: 55ed4560774d ("tools/bootconfig: Add tracing_on support to helper scripts") Signed-off-by: Masami Hiramatsu Signed-off-by: Steven Rostedt (VMware) Signed-off-by: Sasha Levin --- tools/bootconfig/scripts/ftrace2bconf.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- 2.33.0 diff --git a/tools/bootconfig/scripts/ftrace2bconf.sh b/tools/bootconfig/scripts/ftrace2bconf.sh index a0c3bcc6da4f..fb201d5afe2c 100755 --- a/tools/bootconfig/scripts/ftrace2bconf.sh +++ b/tools/bootconfig/scripts/ftrace2bconf.sh @@ -222,8 +222,8 @@ instance_options() { # [instance-name] emit_kv $PREFIX.cpumask = $val fi val=`cat $INSTANCE/tracing_on` - if [ `echo $val | sed -e s/f//g`x != x ]; then - emit_kv $PREFIX.tracing_on = $val + if [ "$val" = "0" ]; then + emit_kv $PREFIX.tracing_on = 0 fi val= From patchwork Fri Sep 24 12:43:49 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg Kroah-Hartman X-Patchwork-Id: 514565 Delivered-To: patch@linaro.org Received: by 2002:a17:906:f46:0:0:0:0 with SMTP id h6csp1253964ejj; Fri, 24 Sep 2021 06:03:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyIL3nF8WupBb5zC5rb0S56OI/W/aN6WGj4mKF6q1/tBcu4f8kULRwbZuztOmwHmOUgDEU7 X-Received: by 2002:a02:5444:: with SMTP id t65mr9306670jaa.42.1632488606751; Fri, 24 Sep 2021 06:03:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632488606; cv=none; d=google.com; s=arc-20160816; b=McqDE+meneW9A4U6sdCDQzrbq4pynXqtcudRvnLQODWjwyfkZxXgf+PJcxmXUkGTYC H9Nvg/Am14EQjUcJEvoFo4AQOLL9G0gM5cGb1bcdWpZjelfBC/HvRxMDoloPeC9GVPG+ QTfS5OObihc2R6dwwNrAULfSYUOcKwpw2QqVwM27jb74c3lmMUKtArjR0oAdOo8lT/HC U6NOpt+wz3ge+nhaF29x/+MEzpYNem/xrTmAOqUYJ1AfW6zC2mw6U5VCd1qfvzHbC6XF 3z7j3m6hAXFrqfJWjWHrkO4Nkd8rkp12wKaHZ/7JvrHPDrpCITDmxIgoOgmpMe61Ov3s htcQ== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=rSuJ27J7+/k8cEJHQTQvJTzCMigMijvEcV+85RrgYJY=; b=pu/KHdPXfnfrO1UkqrZLfdZtMbyHh0+LKdU8CBnwqzYZfyUE922CzyshHzXWjGei43 sQ5qtnKHb0vFxgRQMrhY36ufPD3ZT7RTWoYy3Q5G4tiQFoGbGemnlyoiq3km/6y0rrNu KZZzKsMqHovnLGhZ0eDP5etoynUfb9O0YXzzGc1BTWoyrZrZxqg4D/5v7eGO6G9ADJLV FaAZ9lZWPvgxEQIxs1HO6n9Z59GuIXERpqaJL1U5+gJZ92HXgYTT1VUF3dGKrZqLLhrj 3ATICr92fnBngTo1HY3Y16uvJgtcNfewnw8uPPgaFR7aJARKREaz8G8BMfMtt96nTXv+ SK5Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=JE+EGKBB; spf=pass (google.com: domain of stable-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=stable-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h15si9756452jaa.28.2021.09.24.06.03.26; Fri, 24 Sep 2021 06:03:26 -0700 (PDT) Received-SPF: pass (google.com: domain of stable-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=JE+EGKBB; spf=pass (google.com: domain of stable-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=stable-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345851AbhIXNEN (ORCPT + 11 others); Fri, 24 Sep 2021 09:04:13 -0400 Received: from mail.kernel.org ([198.145.29.99]:59752 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344174AbhIXNCJ (ORCPT ); Fri, 24 Sep 2021 09:02:09 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id CED9A61439; Fri, 24 Sep 2021 12:54:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1632488069; bh=EblabyhP/ZG2Glv8/a6oYU1j3ijpHPJR3hduOs2nGkM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=JE+EGKBBAo9lc92bDK/FXQgUfFgPDaXgyLENu2xvtyN7Jz23NTRkAyGSLFcDocKks b6L46An6Cccgl5rKfZv5T2tzxSW/Po0ifGPhB5KGpQ5wF9bTxR7xSr1skt3A4XrfhE XcMZYdO2NVzxKmR/dDrgbA7hvUgST8qFfht/dlFg= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Masami Hiramatsu , "Steven Rostedt (VMware)" , Sasha Levin Subject: [PATCH 5.14 040/100] tracing/boot: Fix to loop on only subkeys Date: Fri, 24 Sep 2021 14:43:49 +0200 Message-Id: <20210924124342.799797187@linuxfoundation.org> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20210924124341.214446495@linuxfoundation.org> References: <20210924124341.214446495@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org From: Masami Hiramatsu [ Upstream commit cfd799837dbc48499abb05d1891b3d9992354d3a ] Since the commit e5efaeb8a8f5 ("bootconfig: Support mixing a value and subkeys under a key") allows to co-exist a value node and key nodes under a node, xbc_node_for_each_child() is not only returning key node but also a value node. In the boot-time tracing using xbc_node_for_each_child() to iterate the events, groups and instances, but those must be key nodes. Thus it must use xbc_node_for_each_subkey(). Link: https://lkml.kernel.org/r/163112988361.74896.2267026262061819145.stgit@devnote2 Fixes: e5efaeb8a8f5 ("bootconfig: Support mixing a value and subkeys under a key") Signed-off-by: Masami Hiramatsu Signed-off-by: Steven Rostedt (VMware) Signed-off-by: Sasha Levin --- kernel/trace/trace_boot.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) -- 2.33.0 diff --git a/kernel/trace/trace_boot.c b/kernel/trace/trace_boot.c index d713714cba67..4bd8f94a56c6 100644 --- a/kernel/trace/trace_boot.c +++ b/kernel/trace/trace_boot.c @@ -235,14 +235,14 @@ trace_boot_init_events(struct trace_array *tr, struct xbc_node *node) if (!node) return; /* per-event key starts with "event.GROUP.EVENT" */ - xbc_node_for_each_child(node, gnode) { + xbc_node_for_each_subkey(node, gnode) { data = xbc_node_get_data(gnode); if (!strcmp(data, "enable")) { enable_all = true; continue; } enable = false; - xbc_node_for_each_child(gnode, enode) { + xbc_node_for_each_subkey(gnode, enode) { data = xbc_node_get_data(enode); if (!strcmp(data, "enable")) { enable = true; @@ -338,7 +338,7 @@ trace_boot_init_instances(struct xbc_node *node) if (!node) return; - xbc_node_for_each_child(node, inode) { + xbc_node_for_each_subkey(node, inode) { p = xbc_node_get_data(inode); if (!p || *p == '\0') continue; From patchwork Fri Sep 24 12:43:50 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg Kroah-Hartman X-Patchwork-Id: 514566 Delivered-To: patch@linaro.org Received: by 2002:a17:906:f46:0:0:0:0 with SMTP id h6csp1254344ejj; Fri, 24 Sep 2021 06:03:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxBYt4+b56SqYdnqevvQCGbMknPXAoeamZDiWP4JV9bsa//LeJS+vGaCq3o9ehnYF4XYD5u X-Received: by 2002:a5d:8ac1:: with SMTP id e1mr530111iot.40.1632488627043; Fri, 24 Sep 2021 06:03:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632488627; cv=none; d=google.com; s=arc-20160816; b=on/HaVzYLPkNlVIaJ+xJqATZqFd2qQFZa4gyyyRs1lamqs8UhcMX1HNadhC6nylpRz 7XN2s7FXTPcWF72RDrXhkWgqwZvNDfMWihUZm+3nPecQD7tPByYjC2ht2O5yAgrip+he eguZNonlGMEa9vmLFJH74wBg69nvzxIjQR5jKMYJNgOUbiXO5zPGuMD+sRYHdjnnYodH DVGG8DUM0cf65umOe1v6oH5YoRjawCUvEbI6di3h/bnJ6PAeR4AYLq8jHdiEGTffrMJ0 f/cVFNYmhLr2Xog1/+yeiNH+rVb9EIuAiNul2C3rMnIQiY6osoyIouEbZSkWbjc1K3s+ zRbQ== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=VyZ7gmx8wHrPE0CooNRMytk5TmTyz9FDb9Pkn1teDOU=; b=WgHCFQgk1qS3tl71B6/CaypkiOI3LOw+S8iAiYTuJefOa6+nP0pBwCX6C5fQtIAd00 hr0GuZwdZPQYOMK0Cm549QfObI9yMny1erqM6M7dg+3tLefwUiBJ31yDFz0WCwpTBZK0 je/qYsNTUNgcvcdj+NVp+kI+LsnIU6N5Rtd/NWGO96fwKsJDyvanN9kwhuueYJBS2Og8 UZaCqOBf/VT4RZwnX9L6bcfBMOhDx++Zn8qroXQ55cNDPcmmHM7q2DnR9sa7MhWngROP lQz1AffFWB5qgBilzVLS/8uIyxTAaQldTBdUmlhjOpZfguE2mof+RtQNHCDg0rqt8veC YuUQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=nLkEwL4O; spf=pass (google.com: domain of stable-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=stable-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h15si9756452jaa.28.2021.09.24.06.03.45; Fri, 24 Sep 2021 06:03:47 -0700 (PDT) Received-SPF: pass (google.com: domain of stable-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=nLkEwL4O; spf=pass (google.com: domain of stable-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=stable-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345671AbhIXNEY (ORCPT + 11 others); Fri, 24 Sep 2021 09:04:24 -0400 Received: from mail.kernel.org ([198.145.29.99]:34394 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345491AbhIXNCS (ORCPT ); Fri, 24 Sep 2021 09:02:18 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 12B1961452; Fri, 24 Sep 2021 12:54:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1632488071; bh=m1Kujgook1PbYh+KRb/Tnz6OmjVPOuTODtLuTsMfw3I=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=nLkEwL4Ofvt1i+yA15/yDiNfjj0EsWfHI349TP2L2FsoE9d85ANQ06ivy5v66y+1E Ckm1p5ls0W+K0OTmJYfPB612+Zrt4uGF12KWCxfHaAgiveCHeXM2O+cSejfaCSLCU+ BGKsolbUtnbosCTdVe3j0oSMNoFkTXwj4JWN59p8= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Arnd Bergmann , Jean-Francois Dagenais , Daniel Lezcano , Sasha Levin Subject: [PATCH 5.14 041/100] thermal/core: Fix thermal_cooling_device_register() prototype Date: Fri, 24 Sep 2021 14:43:50 +0200 Message-Id: <20210924124342.832465960@linuxfoundation.org> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20210924124341.214446495@linuxfoundation.org> References: <20210924124341.214446495@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org From: Arnd Bergmann [ Upstream commit fb83610762dd5927212aa62a468dd3b756b57a88 ] There are two pairs of declarations for thermal_cooling_device_register() and thermal_of_cooling_device_register(), and only one set was changed in a recent patch, so the other one now causes a compile-time warning: drivers/net/wireless/mediatek/mt76/mt7915/init.c: In function 'mt7915_thermal_init': drivers/net/wireless/mediatek/mt76/mt7915/init.c:134:48: error: passing argument 1 of 'thermal_cooling_device_register' discards 'const' qualifier from pointer target type [-Werror=discarded-qualifiers] 134 | cdev = thermal_cooling_device_register(wiphy_name(wiphy), phy, | ^~~~~~~~~~~~~~~~~ In file included from drivers/net/wireless/mediatek/mt76/mt7915/init.c:7: include/linux/thermal.h:407:39: note: expected 'char *' but argument is of type 'const char *' 407 | thermal_cooling_device_register(char *type, void *devdata, | ~~~~~~^~~~ Change the dummy helper functions to have the same arguments as the normal version. Fixes: f991de53a8ab ("thermal: make device_register's type argument const") Signed-off-by: Arnd Bergmann Reviewed-by: Jean-Francois Dagenais Signed-off-by: Daniel Lezcano Link: https://lore.kernel.org/r/20210722090717.1116748-1-arnd@kernel.org Signed-off-by: Sasha Levin --- include/linux/thermal.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) -- 2.33.0 diff --git a/include/linux/thermal.h b/include/linux/thermal.h index d296f3b88fb9..8050d929a5b4 100644 --- a/include/linux/thermal.h +++ b/include/linux/thermal.h @@ -404,12 +404,13 @@ static inline void thermal_zone_device_unregister( struct thermal_zone_device *tz) { } static inline struct thermal_cooling_device * -thermal_cooling_device_register(char *type, void *devdata, +thermal_cooling_device_register(const char *type, void *devdata, const struct thermal_cooling_device_ops *ops) { return ERR_PTR(-ENODEV); } static inline struct thermal_cooling_device * thermal_of_cooling_device_register(struct device_node *np, - char *type, void *devdata, const struct thermal_cooling_device_ops *ops) + const char *type, void *devdata, + const struct thermal_cooling_device_ops *ops) { return ERR_PTR(-ENODEV); } static inline struct thermal_cooling_device * devm_thermal_of_cooling_device_register(struct device *dev,