Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp6196459rwl; Wed, 22 Mar 2023 07:41:15 -0700 (PDT) X-Google-Smtp-Source: AK7set9uiQ4QVA+xo0fAvfesu7meXMO21/hKdYXHTjGgEySH4RUR4C9A0DVR/nmUeU8U+ihFwf0N X-Received: by 2002:a17:906:f8c2:b0:930:3916:df17 with SMTP id lh2-20020a170906f8c200b009303916df17mr8131772ejb.0.1679496075041; Wed, 22 Mar 2023 07:41:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679496075; cv=none; d=google.com; s=arc-20160816; b=XdlJ/fK4Ljc8+kditK46+biiXYBuqpzB+u6KCz3TJlv4T0q+5crk257iZSh92Hst2A GHBrpPFNnjmnui6cffOF1L+Mv3WOJSTuS1N8uPWmP09lrGXnkDJG5crs/M2HhzPfgW58 TSD3wVZMnG4MiykKZ1GJpU93L4KLsPzZhh6KocoZ3pDe+esMa+E0nz7KvzezrtTsZlr/ X0IcTs03V5STA8PE3neivYFVnFbtLAXZAMXL9XmoLFmLwmr/6bl72ZBmES1EKZzqO+fM tVuljvp1FTN/jqS7JNZQVVaOCQ7QpJNAHeZgY74iPczO1jfkxtIDnx2LQofa2KYJjEKi jDdQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=GFuii4LK+PS1es5BlUpPnZswq1TNrIz0rvrhOg0mB5w=; b=Cb4qkQjwntiD92bMHWuZiJMrL09fqu9NXhjofBpwDI8LhFEBqcmgWMuPQFeOX+qrKe 1OGLFCa/Y1+0ESFCwWd3/wbIkIUB+JleSugVEWqIsznvlHAxJpfRyJM6Zb1SUmPynK7N VN5jHxL9gol6FmTB6bpXrZXV4TcELZ5YQH+A+tApUmfhLUABS++xPiTgzqZ9Qs4+0mVv j7IE86vhklCnI6IV4/wecXOM4X/xnDeFx2yI7pRmnSRC44qKC3jhopqrYu8MNvMZVgvh uqNkoTOrARCsrLXxV9DMsNsy247umuKZ7/MUOVxgFWRovykm64kebHUZr5oj8JScUF60 bFpQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=WTC5LQ6u; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id mm10-20020a170906cc4a00b00930de1d9553si15460468ejb.16.2023.03.22.07.40.51; Wed, 22 Mar 2023 07:41:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=WTC5LQ6u; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231675AbjCVOjp (ORCPT + 99 others); Wed, 22 Mar 2023 10:39:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40712 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231515AbjCVOj0 (ORCPT ); Wed, 22 Mar 2023 10:39:26 -0400 Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E7B31457C6 for ; Wed, 22 Mar 2023 07:39:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1679495964; x=1711031964; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=N33rpjnGQ5ytOuxHzIh25HaIghid6HPaz5R86OU5umw=; b=WTC5LQ6u9ge+YN+DIcNShgymbnWsvNdtEw9GiVHte+8uBX/2q2WxSo5G nnLDpfaXTGtKl26N8p5OJBlQ8HVOPgE6dAQzTHN+WW5LzTIPyBdHjUEzm iMQF8PoU3KImUfQe3kjDGqFua0FwhVn4y6pdo0BR141jJVQovlIxBzfDu q6I1LqpJmBaUPSpTLjdwC1khnRFIZmrkl0GE+YAcZgccMiLOcemYrvAQV yVS2hkQiy8H1WsgrRJ2JFf32FzzTZZ+luPW/RXdimMLHqZu/McllacfIz p2VFO+s5rJwOFVz6bFI+5x0PMcxR2e9v63cnqni9J1bM+wBDQW/tgd0AW Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10657"; a="319622124" X-IronPort-AV: E=Sophos;i="5.98,282,1673942400"; d="scan'208";a="319622124" Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Mar 2023 07:39:24 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10657"; a="856116427" X-IronPort-AV: E=Sophos;i="5.98,282,1673942400"; d="scan'208";a="856116427" Received: from black.fi.intel.com ([10.237.72.28]) by orsmga005.jf.intel.com with ESMTP; 22 Mar 2023 07:39:23 -0700 Received: by black.fi.intel.com (Postfix, from userid 1003) id DE874942; Wed, 22 Mar 2023 16:40:06 +0200 (EET) From: Andy Shevchenko To: Bumwoo Lee , Andy Shevchenko , linux-kernel@vger.kernel.org Cc: MyungJoo Ham , Chanwoo Choi Subject: [PATCH v1 09/14] extcon: Use device_match_of_node() helper Date: Wed, 22 Mar 2023 16:40:00 +0200 Message-Id: <20230322144005.40368-10-andriy.shevchenko@linux.intel.com> X-Mailer: git-send-email 2.40.0.1.gaa8946217a0b In-Reply-To: <20230322144005.40368-1-andriy.shevchenko@linux.intel.com> References: <20230322144005.40368-1-andriy.shevchenko@linux.intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.4 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_NONE, URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Instead of open coding, use device_match_of_node() helper. Signed-off-by: Andy Shevchenko --- drivers/extcon/extcon.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/extcon/extcon.c b/drivers/extcon/extcon.c index a63e7eef02fd..5cadbfc151e6 100644 --- a/drivers/extcon/extcon.c +++ b/drivers/extcon/extcon.c @@ -1411,7 +1411,7 @@ struct extcon_dev *extcon_find_edev_by_node(struct device_node *node) mutex_lock(&extcon_dev_list_lock); list_for_each_entry(edev, &extcon_dev_list, entry) - if (edev->dev.parent && edev->dev.parent->of_node == node) + if (edev->dev.parent && device_match_of_node(edev->dev.parent, node)) goto out; edev = ERR_PTR(-EPROBE_DEFER); out: -- 2.40.0.1.gaa8946217a0b