Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp1354509ybl; Wed, 4 Dec 2019 23:21:04 -0800 (PST) X-Google-Smtp-Source: APXvYqxylxCYZy7kjgzeyiyXg9mdTU3Qgd1pNe7IK1ivdiBwD0FXs0OyiY9dz1loWE+bKYPsXxgO X-Received: by 2002:a05:6830:2046:: with SMTP id f6mr4349781otp.206.1575530464423; Wed, 04 Dec 2019 23:21:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575530464; cv=none; d=google.com; s=arc-20160816; b=O9pBDwibPvrJJbOxmwZA4mn0PgpInoHA6o2gRhHxpxDNtIDO+R4dvsGgkLttmnDtK0 U6SF0SzFMreTQpGlpMscGUTTeGVpHh9bZTTyYmZMDAQbyOIcDSbfIn4WpyDkfK+xaXTB wgN85UwiSLLfoId5ZnKtmPh06fmaw4EHFg1XP2Uyh3xx4ndW10IfecPFGWqzsfyDmhZu IjBceWRaABTglZrG+BR/a/ZEs9PcmIivVDg+Xcz15fkvTxogEKqXG/OntYtoocYaOgn4 cBPdpqxXBWgDcO2QjuV7JP3wMwNgDobMNCNpMo8isPdHv7/auzR2yjPFyEJY8GkFx042 D/aQ== 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:mime-version :message-id:date:dkim-signature; bh=FNNXF5sUDk2To9IrnQY1hGu8S5uYxVxFAu+jBAyZens=; b=yNgeYe8D/mBxy9k+zIJEppWaCs6JyvWX8me9uM1XIDVxmNQgSQAOUJZ9u3YIZy3i/+ UjORj/yTtOuPpDL3rElr/Kv1kFLu2f6msV8q/qr/Hku16WzHblDkM3aDhdm4m+QWfvx5 zcoF9swAR7cY89oNHWScvxQa63yAtvQJnJ924Si9FTwRXbbofYFt4TvlnC1kOpYKl02l WztV6tsefoTuPGSpYgPtS+TDAE0x33GjfA5R7sdZTAoRd2ZYwCpsYoBYr3xyn4McFggN 66nROYVsre8U91UlOGUf7eC6zoDbijzligeJxfTXdF59y+7izx1Zm1oIhJ5wnMQq59Zh ahHA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=b92J8jdH; 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 u9si4449697oib.55.2019.12.04.23.20.42; Wed, 04 Dec 2019 23:21:04 -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=b92J8jdH; 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 S1726177AbfLEHUM (ORCPT + 99 others); Thu, 5 Dec 2019 02:20:12 -0500 Received: from mail-pj1-f74.google.com ([209.85.216.74]:54899 "EHLO mail-pj1-f74.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725974AbfLEHUM (ORCPT ); Thu, 5 Dec 2019 02:20:12 -0500 Received: by mail-pj1-f74.google.com with SMTP id d21so1289301pjs.21 for ; Wed, 04 Dec 2019 23:20:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:message-id:mime-version:subject:from:cc; bh=FNNXF5sUDk2To9IrnQY1hGu8S5uYxVxFAu+jBAyZens=; b=b92J8jdHjDyp2TLoSTYcNkHxDjlQ5qxZ7Da03+LrBT04ke/jGvQoONMdEk5oSvIRTl CEKhj+dtAbAp6OmO3IePN8x23GL1nzmoG1zKRKbv9lLY+jhyfeLFMLADUDjyuksd9jc6 k2qF+K82+KbAcSIbPhJaDBl3AccamQ9BXV6cyZTeIJIT/gL/iHaj8q8K0GeVA473uWsa DDPCe++FW0h4Aa3DiAoJLWnNbkuh0BiLV7s94B8DR0efpZarhGZiNSkqCxK/TjjA7gr8 kzVDzv97h9o8PMPdVnVy4lFklDND5JFoMDHrX2OJvB59HHeS4qn6t2c7dOUjg3DGkMEE Dbkw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:message-id:mime-version:subject:from:cc; bh=FNNXF5sUDk2To9IrnQY1hGu8S5uYxVxFAu+jBAyZens=; b=SKVepRXrChoxV8JhRdJXY3FbD5pzIVCaUhkvrywdlO3DtV80PcdUedf8LxNFxWM3eG t6MBo4D3ouhhCQEcACQ7fIbp7KnUnHUuZy7Q6xw7m+AL4Z2nRMxwJNu4dS1l8X5bT28v t6XVj8Pdy+RuuOBZWTml6Zk44OCZx9901XdgOh30uJxXJdseFwvWcOvnk5dikCl5N9/d eHulP4UUT8gtEepTXi/NrhVJ9/hwDWfgmnKeLCv+wCpJ/j8ekELYsHw7fclPj/XnTabM seeuULZ7bOclaLAeGU4nrv0g2TEvjpq6Pradyqi3YcBgcMMXI6W5jessDwDKV8LJTBGa CMwQ== X-Gm-Message-State: APjAAAWl2qOd7G9ntICT95PTyt3nZGeZ/3j+6uFNeEivboY5N1ENXZl3 yH3TyE/GhkdJVXN9BunvLDna9zU= X-Received: by 2002:a63:4303:: with SMTP id q3mr7864698pga.439.1575530411658; Wed, 04 Dec 2019 23:20:11 -0800 (PST) Date: Wed, 4 Dec 2019 23:19:50 -0800 Message-Id: <20191205071953.121511-1-wvw@google.com> Mime-Version: 1.0 X-Mailer: git-send-email 2.24.0.393.g34dc348eaf-goog Subject: [PATCH v3 0/3] 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 Changes since v2 [2]: * Split improve error message in thermal zone registration [1]: v1: https://lore.kernel.org/patchwork/patch/1139450/ [2]: v2: https://lkml.org/lkml/2019/12/4/1291 Wei Wang (3): thermal: prevent cooling device with no type to be registered thermal: improve error message in thermal zone registration thermal: create softlink by name for thermal_zone and cooling_device drivers/thermal/thermal_core.c | 55 +++++++++++++++++++++++++++------- 1 file changed, 44 insertions(+), 11 deletions(-) -- 2.24.0.393.g34dc348eaf-goog