Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp952644ybl; Wed, 4 Dec 2019 13:57:09 -0800 (PST) X-Google-Smtp-Source: APXvYqxVTn1WjeP4fkH631GWYLYvWmTGZUz9p8li2hR7JjDuahEvogd1T6IVVu5d+NryfH1h/3d7 X-Received: by 2002:aca:4b8f:: with SMTP id y137mr4408388oia.42.1575496629108; Wed, 04 Dec 2019 13:57:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575496629; cv=none; d=google.com; s=arc-20160816; b=KO6jBjauoalOLp4hXUkugbZ4ranOrhRfOVe3uWAX+yew7QrzHELvr19lPk7nqOph2x z8xWrJibKepAZZ5LcWeQAZ4VvKchUUCvIpOpfrotoGLsw0CKE8cd3lgTEhTYtBXg0+nV dpuFAxDu19gYM6M6MAv2x6qvVCKlcPYLLIRcPCRHq/PZjnljG51nTrPWVcFZwWm8cOUO dwGBEBkJ8z0ubTsKHJX735eRc+e8A6QaJs9K5imrgQm+De88tC345gxSc3zeDCJy99eB Af7P5o9OME5VsVAuwI0MVZNjyhBcrP5dX1MwdcyedoM2euueIog435q+z9WA6MWYdpq7 vIgg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:cc:from:subject:references :mime-version:message-id:in-reply-to:date:dkim-signature; bh=pLFKaWBxg3G91fQPN27XvAEs6sumdPZLqfrYTLin87M=; b=Hj/7jQU1C5f6wkxRKgFOeGcOz/pnf3zmTVqaE8bk9XIz3uAIeWipxeuZy915vZVqNV mJBwtf8N2rQHBIYCAfusdJz3/Uw8hwZYTJkOH/eDBZJGMcUs/G4d7febCZ42G+Jz9S8P iTPo/08zNjC0sqrlvwhjWH6AcM6jj27yWB3e788oRexmHMQC5vsBqseGYGh247uMSf8Q 6y0KAYF/LrIFFqDMA7GIDJqJ4b/ulKaDUsmkCIBS2E48ymaY5ucqHnK5cZ04B/KHw7ZL kAy0Q51y8K2YLhk1XbiSPa5mbCAHCdMxanBH7mtvYHH/sgPY22caCsn536cdlmSP1djV T25w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=HQpsnJV1; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p11si3734727ota.300.2019.12.04.13.56.56; Wed, 04 Dec 2019 13:57:09 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=HQpsnJV1; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728237AbfLDV4X (ORCPT + 99 others); Wed, 4 Dec 2019 16:56:23 -0500 Received: from mail-pl1-f202.google.com ([209.85.214.202]:49570 "EHLO mail-pl1-f202.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728031AbfLDV4X (ORCPT ); Wed, 4 Dec 2019 16:56:23 -0500 Received: by mail-pl1-f202.google.com with SMTP id y8so382743plk.16 for ; Wed, 04 Dec 2019 13:56:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:in-reply-to:message-id:mime-version:references:subject:from:cc; bh=pLFKaWBxg3G91fQPN27XvAEs6sumdPZLqfrYTLin87M=; b=HQpsnJV1F1F54ZMj+I2hsZyKO+lpwzLTbCEQDfkrgLSTYB3gmAS+k+2sz1Y1Pc+Aza mlwhuCYAhP5z1K1dNLu9bjyHasUdLlKeFLo69o/PGvkRdY33Ww+Mv/lPyrRw1rQyHQ2L cCtoZRdp7zGcz8EotAMMvpgUw+p8UAYvYdGGHz3Zof9aGYeJG7EUsJtkiu8x5a6FACrz 9STLb4KN0CEEiOQ9dkex5iMD+tHgM3Uy2hyYFleQPWmx7vE4OwhswmQUX4qtDkT2yeuR IFj4GRdRaZWEoeo0gLagaBVz7GCdkwncP2uCRkJE69t6dR7PSQhHjbDgo3R7CTkjyN+W DYag== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:in-reply-to:message-id:mime-version :references:subject:from:cc; bh=pLFKaWBxg3G91fQPN27XvAEs6sumdPZLqfrYTLin87M=; b=BZHLJ4uA45GGcVeiQAaM5+5VD45AztlpS17TkpfELTDvMHw7onlqUxeIfR8mLyE6eC lSOLuKKUNDEtdoYS78YmpS9mE7n77auBCPMoJABNrQBBkDSP483LjRCcfzTZESYiXkzR mlh1azgAVRuAccpxf5GWHjDjf+s9Wo5xHnsY71N/N+MfGoNUyc/jGNGehvy/PbANpeo4 Jx9Rx/Dki1gwr4E6iNMySYQWfyvFIagBfA+f7DfdgDKwVkFSaZEtwvAIGe7G7uEafXVD qiiBUCcSnUkk/or6wBc+JX0uXBRPllHLTxmYCLEsQLTyOhuhENsNkKAxR4YKpNDb2AAK 7E8A== X-Gm-Message-State: APjAAAWAZhNDeVvuml0xBy49Q7X8xt++HX8QSEieoFJ5/b4qGQpS+dD2 6zODnTzs81QecIlSICRwne09TW4= X-Received: by 2002:a63:5d06:: with SMTP id r6mr5679994pgb.249.1575496582323; Wed, 04 Dec 2019 13:56:22 -0800 (PST) Date: Wed, 4 Dec 2019 13:56:16 -0800 In-Reply-To: Message-Id: <20191204215618.125826-1-wvw@google.com> Mime-Version: 1.0 References: X-Mailer: git-send-email 2.24.0.393.g34dc348eaf-goog Subject: [PATCH v2 0/2] thermal: introduce by-name softlink From: Wei Wang Cc: wei.vince.wang@gmail.com, Wei Wang , Zhang Rui , Eduardo Valentin , Daniel Lezcano , Amit Kucheria , linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" To: unlisted-recipients:; (no To-header on input) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The paths thermal_zone%d and cooling_device%d are not intuitive and the numbers are subject to change due to device tree change. This usually leads to tree traversal in userspace code. The patch creates `tz-by-name' and `cdev-by-name' for thermal zone and cooling_device respectively. Changes since v1 [1]: * Split cooling device registration into a seperate patch [1]: v1: https://lore.kernel.org/patchwork/patch/1139450/ Wei Wang (2): thermal: fix and clean up tz and cdev registration thermal: create softlink by name for thermal_zone and cooling_device drivers/thermal/thermal_core.c | 37 +++++++++++++++++++++++++++++----- 1 file changed, 32 insertions(+), 5 deletions(-) -- 2.24.0.393.g34dc348eaf-goog