From mboxrd@z Thu Jan 1 00:00:00 1970 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=-2.9 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham 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 1F5FAC07E85 for ; Tue, 11 Dec 2018 13:14:56 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id E1A972081B for ; Tue, 11 Dec 2018 13:14:55 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org E1A972081B Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linux.intel.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726367AbeLKNOz (ORCPT ); Tue, 11 Dec 2018 08:14:55 -0500 Received: from mga11.intel.com ([192.55.52.93]:26804 "EHLO mga11.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726170AbeLKNOy (ORCPT ); Tue, 11 Dec 2018 08:14:54 -0500 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga102.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 11 Dec 2018 05:14:54 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.56,342,1539673200"; d="scan'208";a="128954733" Received: from black.fi.intel.com (HELO black.fi.intel.com.) ([10.237.72.28]) by fmsmga001.fm.intel.com with ESMTP; 11 Dec 2018 05:14:51 -0800 From: Heikki Krogerus To: "Rafael J. Wysocki" , Andy Shevchenko Cc: Mika Westerberg , Rob Herring , Frank Rowand , linux-kernel@vger.kernel.org, linux-acpi@vger.kernel.org, devicetree@vger.kernel.org Subject: [PATCH v6 0/3] device property: Add fwnode_get_name() helper Date: Tue, 11 Dec 2018 16:14:48 +0300 Message-Id: <20181211131451.52832-1-heikki.krogerus@linux.intel.com> X-Mailer: git-send-email 2.19.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, Andy, I dropped you Reviewed-by tag because of the last change to this series, so if you could check these again I would much appreciate. Changes since v5: - No longer reading "name" device property as fallback. Changes since v4: - No changes. There was an extra patch in v3. This was just a resend of v3 without that extra patch. Changes since v3: - I'm now returning -EOVERFLOW if the buffer is not big enough as proposed by Andy. This is the cover letter from v3: This is the third version of my proposal for this helper. The second version can be checked here: https://lkml.org/lkml/2018/11/8/1005 I'm now passing the length as proposed by both Rob and Andy. I'm also leaving the .get_named_child_node fwnode op untouched. -- heikki Heikki Krogerus (3): device property: Introduce fwnode_get_name() ACPI: property: Add acpi_fwnode_name() of/property: Add of_fwnode_name() drivers/acpi/property.c | 28 ++++++++++++++++++++++++++++ drivers/base/property.c | 17 +++++++++++++++++ drivers/of/property.c | 13 +++++++++++++ include/linux/fwnode.h | 3 +++ include/linux/property.h | 2 ++ 5 files changed, 63 insertions(+) -- 2.19.2