From patchwork Wed Dec 5 19:50:47 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Rob Herring \(Arm\)" X-Patchwork-Id: 152953 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp9695534ljp; Wed, 5 Dec 2018 11:51:33 -0800 (PST) X-Google-Smtp-Source: AFSGD/ULvrkNhLzsp7uNLCRkiAuBOoBOs8Kj08VaET80svt6VUmwS1VEyOq/pr7L8mMFja2sEdwb X-Received: by 2002:a63:f658:: with SMTP id u24mr21718663pgj.267.1544039493085; Wed, 05 Dec 2018 11:51:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544039493; cv=none; d=google.com; s=arc-20160816; b=Ubx0+CgDjvbbnctLjdQQYVU4IxlIUsinfemMN3VYqil9TyjRvuBa1x14tkpuAWSPH1 yDuqYz1VCTor8hQ0eBYX9ukA3AtqFblrtdV+3AVBQgH9sa/otF+CYT1InZokE/kHQhJh nhMpk8dgT3EtjtJtfnMy9Ao2pDRzdrv/MtU7p8USylUXB01yd4fQqWAVGvrJFcXDOyhM PRrTqX0QN8SanSh8bVxYoPXn9FFaTgC+wDTQnOwItixUx+AtXlEH2VtGYP+kqM92Kqcc cg7wWxFb8KEgGgNhdWE0cLMjj8L7a8mDzQAm688zQPNkJ/IJOeAC1lPo9bDneh5TLmj9 ddHA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=NfslrJYf7trre70F0tuzbENqa0jJOZcBdjPIsSp0w/4=; b=UJAfYCxkxc5vFgjxbsI527FwpMOjn2OEI0yxQtqgFzuY3pq8+0wB6yIQ6KlPbLzQhx MPbg7ReYfJG8BLt7iDwIK8s+OhQakdBayQ3BrivrfBC1z1ulN55ok5aWw5NzWWHijnLp IkhnHjoKxX48sWrbKJ2hDooq3DQAnXk2qFC3zne3YRjZbVHmAw1bJrMghkgNRk4sq473 dI95qzmWjZaJm2w7GL1SnLGJ2OAyHYwcdA2EAaz3WJRjeBb/l+TRO7NysXFTE6mF5Fnb m/rnp9SMKntRl1Qa3H5mLboUNR9gDScB/PaPYt07aPOf4ItvUsDJZwe9jnp2FJjPKCFw W2fw== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r11si17972832pgg.327.2018.12.05.11.51.32; Wed, 05 Dec 2018 11:51:33 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728885AbeLETvb (ORCPT + 31 others); Wed, 5 Dec 2018 14:51:31 -0500 Received: from mail-oi1-f195.google.com ([209.85.167.195]:35913 "EHLO mail-oi1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728500AbeLETv1 (ORCPT ); Wed, 5 Dec 2018 14:51:27 -0500 Received: by mail-oi1-f195.google.com with SMTP id x23so18636505oix.3; Wed, 05 Dec 2018 11:51:26 -0800 (PST) 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:mime-version :content-transfer-encoding; bh=NfslrJYf7trre70F0tuzbENqa0jJOZcBdjPIsSp0w/4=; b=GOSkczjv03lT9Sx3FFMy35B7bAPqh/sSkvNT+Mr1Dg6QXeVFP0B17eh72MLZcgS5BD yTaXghhPOWzV/kYCEb35yCwho7bsfYWtIKEt3KO4VrV840NAjA4ynSmWmLME8BIuQyAB YUUEdSN/Ql7UWXGuxUw6AtC0loxIlUYfDZ9m2wxRtAuIaxVlUlKsKzHhibvNDgp65rj+ qYCG/1My36BVlq10eyfpwdfNO35aKU4DEV3L99JK2EEsdHfR3yfrKu97EpMqbZVc1nUM 6gZzrl0CpQNep7HcUZCZSUkJpRHR2fdR5/uNzs3PFs0aWVXV3iRNaDAsjwHHmzjNsCNb Yefg== X-Gm-Message-State: AA+aEWZQ4xaPUosDMbo+zew0mKZx03YusMpNjkrcTF8YKNF6Xxgvuv9i Y7dqJcp19jSfVCED0T7K/zhr8HHVWQ== X-Received: by 2002:aca:da02:: with SMTP id r2mr15034703oig.66.1544039486023; Wed, 05 Dec 2018 11:51:26 -0800 (PST) Received: from xps15.herring.priv (24-155-109-49.dyn.grandenetworks.net. [24.155.109.49]) by smtp.googlemail.com with ESMTPSA id k13sm25759879otj.19.2018.12.05.11.51.25 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 05 Dec 2018 11:51:25 -0800 (PST) From: Rob Herring To: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: "David S. Miller" , sparclinux@vger.kernel.org Subject: [PATCH] ALSA: sparc: Use of_node_name_eq for node name comparisons Date: Wed, 5 Dec 2018 13:50:47 -0600 Message-Id: <20181205195050.4759-31-robh@kernel.org> X-Mailer: git-send-email 2.19.1 MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Convert string compares of DT node names to use of_node_name_eq helper instead. This removes direct access to the node name pointer. Cc: "David S. Miller" Cc: sparclinux@vger.kernel.org Signed-off-by: Rob Herring --- sound/sparc/cs4231.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) -- 2.19.1 diff --git a/sound/sparc/cs4231.c b/sound/sparc/cs4231.c index e73c962590eb..f707cd4886c3 100644 --- a/sound/sparc/cs4231.c +++ b/sound/sparc/cs4231.c @@ -2075,12 +2075,12 @@ static int cs4231_ebus_probe(struct platform_device *op) static int cs4231_probe(struct platform_device *op) { #ifdef EBUS_SUPPORT - if (!strcmp(op->dev.of_node->parent->name, "ebus")) + if (of_node_name_eq(op->dev.of_node->parent, "ebus")) return cs4231_ebus_probe(op); #endif #ifdef SBUS_SUPPORT - if (!strcmp(op->dev.of_node->parent->name, "sbus") || - !strcmp(op->dev.of_node->parent->name, "sbi")) + if (of_node_name_eq(op->dev.of_node->parent, "sbus") || + of_node_name_eq(op->dev.of_node->parent, "sbi")) return cs4231_sbus_probe(op); #endif return -ENODEV;