From patchwork Tue Jul 18 21:43:25 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Rob Herring (Arm)" X-Patchwork-Id: 9850121 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 46B66602C8 for ; Tue, 18 Jul 2017 22:49:45 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 349D0285E7 for ; Tue, 18 Jul 2017 22:49:45 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 29C33285EE; Tue, 18 Jul 2017 22:49:45 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.4 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_SORBS_SPAM autolearn=no version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id BBE25285E7 for ; Tue, 18 Jul 2017 22:49:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: References:List-Owner; bh=XmFnDZf2gaqAjsDzMk1+wlMBrNF7KDUjlhkcMyZeGrI=; b=bIg 0tDcsFRrVbCltk4DiZPMP9VT+27j9/h5GKxvUck0KvAZJs3EO2DtYpwhIomx5EGBeZnWVPkXP7DeW zAcKsyL84utzrFnPegF5mlPY6IiXJnAkHLOr5/BVfCt/hSDEescb4dk6ZIg5wYfmqw+C/TUlnfoF5 un74eJFjBAIXMweFOmHEE+vIZx/dfrlEPiDOFTaGIs7LGV4uTcSGjP8twLZ4eYRgSAOgsJzHUZvQs OVb6RxooJWi0ZDxzOvlFJFGrashVHf/A3+Ixd02Pjz8KipJY8IkdoktgrfXbfB35mvGdIWgFNSp8E /fgM98MUvgNDPWtEpr9NGOlI33nvfew==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1dXbJE-0005Z1-MU; Tue, 18 Jul 2017 22:49:40 +0000 Received: from merlin.infradead.org ([2001:8b0:10b:1231::1]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dXbIs-0005Em-QO; Tue, 18 Jul 2017 22:49:19 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=Message-Id:Date:Subject:Cc:To:From: Sender:Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=CNqqMlkYzdgJ7iXMJzw9QBC3L+6GET/7kakZnNpcJj0=; b=ZMPqHVSjd1iPqraZexNbUO7Jk 4sp7snXKQHcPMa0f2XLAKTP6ZPLP12I9e4bYSfRzZr4t59BCs4kEuMHysKRcmn31EF3m9X9rzE1rO 9teDDT2vlCNcSqs9G+CSBpUZLLYFsYndWNUd3nQ4mXYipQiB7O+Ci4QnPFsERLMgxhTYygmem9iSw tZMrtlwUgKxWUChyvwx5bFgaT1tDPfgRNq/MLYpqdgmyztizdOpYJersJNg69eKs+M5IveK2U/0Iq kQlEw3hJJOoqUBqWz1WSdmoSOLdwVdnNJoZ0KmEtUkKxj0PIvSTJHrBb1Vowus358qZTTyZPx6Hrr OIdEoB5Lg==; Received: from mail-pf0-f193.google.com ([209.85.192.193]) by merlin.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dXaIw-00015m-56; Tue, 18 Jul 2017 21:45:19 +0000 Received: by mail-pf0-f193.google.com with SMTP id q85so4060311pfq.2; Tue, 18 Jul 2017 14:44:57 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=CNqqMlkYzdgJ7iXMJzw9QBC3L+6GET/7kakZnNpcJj0=; b=YRRY5uWNAf6MrPqEg1MCsymLjKFFcr+xIYR6IWo0tQZYgTobN9uCeQDb4d8my8ubpK PqfWNMkx+d8Ops1ixr/Cas8ac3XnBN6WpYrzVWk3dOj2+V3TRlRUJBOmXRHYfLCfsAxQ +GzualI2yQGj7+ZhuXXM1yMKbpjLFdS1QTAxA4HMlWMRZuBn0qTGjDVtVJFZEyM57DpE EaxfpHyQE7RY5XsF3AricCS9ny8mz6+AatALYVHDGJDGvYLhnG6qMAUI5Fi6NTXULG8i srUSurwM/HZZrqk+NchrGVUwSjXI+9KXbpKX+gzT77sTWLy8T6OJAjarR/M1XoTKKd/Q lTJg== X-Gm-Message-State: AIVw111lfW0QnmWn+/OZEVwXETo6JSRyN680Mp/eQ9KOCHjA6tgo6K2x 5XwGyWjMmpVCPA== X-Received: by 10.99.132.195 with SMTP id k186mr3731835pgd.127.1500414297302; Tue, 18 Jul 2017 14:44:57 -0700 (PDT) Received: from localhost.localdomain (24-223-123-72.static.usa-companies.net. [24.223.123.72]) by smtp.googlemail.com with ESMTPSA id r207sm7186560pfr.106.2017.07.18.14.44.55 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 18 Jul 2017 14:44:56 -0700 (PDT) From: Rob Herring To: Thierry Reding Subject: [PATCH] pwm: Convert to using %pOF instead of full_name Date: Tue, 18 Jul 2017 16:43:25 -0500 Message-Id: <20170718214339.7774-45-robh@kernel.org> X-Mailer: git-send-email 2.11.0 X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, linux-pwm@vger.kernel.org, Kevin Hilman , linux-kernel@vger.kernel.org, Carlo Caione , linux-amlogic@lists.infradead.org, linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Now that we have a custom printf format specifier, convert users of full_name to use %pOF instead. This is preparation to remove storing of the full path string for each node. Signed-off-by: Rob Herring Cc: Thierry Reding Cc: Carlo Caione Cc: Kevin Hilman Cc: linux-pwm@vger.kernel.org Cc: linux-arm-kernel@lists.infradead.org Cc: linux-amlogic@lists.infradead.org Acked-by: Neil Armstrong --- drivers/pwm/pwm-meson.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.11.0 diff --git a/drivers/pwm/pwm-meson.c b/drivers/pwm/pwm-meson.c index cb845edfe2b4..d589331d1884 100644 --- a/drivers/pwm/pwm-meson.c +++ b/drivers/pwm/pwm-meson.c @@ -441,7 +441,7 @@ static int meson_pwm_init_channels(struct meson_pwm *meson, for (i = 0; i < meson->chip.npwm; i++) { struct meson_pwm_channel *channel = &channels[i]; - snprintf(name, sizeof(name), "%s#mux%u", np->full_name, i); + snprintf(name, sizeof(name), "%pOF#mux%u", np, i); init.name = name; init.ops = &clk_mux_ops;