Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-11.4 required=3.0 tests=DKIMWL_WL_MED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT,USER_IN_DEF_DKIM_WL autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id F4030C43603 for ; Wed, 4 Dec 2019 21:56:23 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id B8A192073C for ; Wed, 4 Dec 2019 21:56:23 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="HQpsnJV1" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728053AbfLDV4X (ORCPT ); Wed, 4 Dec 2019 16:56:23 -0500 Received: from mail-pl1-f201.google.com ([209.85.214.201]:57022 "EHLO mail-pl1-f201.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727989AbfLDV4X (ORCPT ); Wed, 4 Dec 2019 16:56:23 -0500 Received: by mail-pl1-f201.google.com with SMTP id k22so372367pls.23 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=MNuWko0ROWpu72TIvipWlTy671I9XMt/G92AZ3UXqgcSgEK+sz08QrsYwDSb6ppuAH oWt7olLdhFELZ/fFqGcU4zenZE98VJQArFfe+IoqrmBXRzblGFam74CzrQGhzFdGo44i lf+6UdthQ+SCJfVMcWZONOsFelOKI80waDcS1x6caZqEFzxL8TVakyyw3SncTNXdU6V1 XdSEgY4mQc8NdCsda8Vte9QxOXA1CVrPxR6ws+SjUPZpBskZ+Ugr0RSPJ7RpQgkp6epu qtmMs04L9OSDzGiuNfeGCzC1dhlZweKc44+Mt1yr9w7CaoCmzxc1Y31ip4MvzCKgO/Ze bmag== X-Gm-Message-State: APjAAAXriMAfKSwubpmp00culcy/0onoj8GH5syMQMFDOt4yoJqT7qxE hA/Z/EGZNfDGQhFS8k4/HKsCQls= X-Google-Smtp-Source: APXvYqxVhdDK3bnCACGmbkS3gGGhN+JPPXEpzuCvBE5GWgaY0BrOdygx6lhAUTBfUSazl9ozGRJyc2A= 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-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@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