Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp4603654rwl; Mon, 3 Apr 2023 07:16:09 -0700 (PDT) X-Google-Smtp-Source: AKy350ZNQzJfZs3frE/J5pzqtuePatD/N52QpVcPs390ZxGDcjH0bXdzudr8c717RJRCH8SjIstU X-Received: by 2002:a17:90b:3807:b0:240:1d2b:1363 with SMTP id mq7-20020a17090b380700b002401d2b1363mr42217247pjb.34.1680531369482; Mon, 03 Apr 2023 07:16:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680531369; cv=none; d=google.com; s=arc-20160816; b=blYa86DM8A161fLiu8uxvOx4mjan21G+D47kVEOY+QZj/Jyu5Yn+fnVQUYrY4FPFpp c0zEFdaNLTUOiJLyVf4sk++OFCioXb+4H3OcOsq8pIpsg+RNOpAQLanf77pH7ollj4tA tfWWqbzb9OpH2Xz2my5S9+gV4RFkEC6jzq+AbfaqqOCg5d4vfc1RTLYP7cxYtUs+tBW+ Jsm/LrsBvkkFQ4PEgONqKb1V3OF1hek6n53KxEHjXUdA+h41/sXUq8nsLVKrFymVSV0r /UP1PnjWOVJSZDEZDAVKxXK1dWpO38jzcRGp+pOk8WVUU1wlAQUPIAYM7TG8K4ko1eca Amyg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=rOT7gHoRFPuvocHIp4c9gnzq9W/CXIWnAUXdAPq4PzA=; b=UwtsZi4CHJ0Ufxr6lt3RPpANifCVUKLdfa7h4WS+zNH8oEoqbNUkPBAJ/wiaeGEjUS re3M5trKPlu4nnERcI/7VKW8Y1OH1PmA4E8AAKi5l0cjOl3LAlxtxX2mFp8UAjcs+wyl 5StwUKJs0AySTmw5U2hnURIuhyxxE0RXbNiae5fJVcroGBspKf+XjPvFZlfzXwFeUF3C wWlG1tJ81sqLmdc66z8cfQg1wgmUSQJ1GuxgkRUi4dWadxfh63eOz3E9pfX45GGPf871 hlsphwsYvbBB12bkINRnyaNGh7ab2IlWt+15F8LLfZLts8WNYnFKzv9/gTwHD/MRrVTk 5yOA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=Pl4YFCMs; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id p23-20020a17090b011700b00233cf4bbd67si7738422pjz.188.2023.04.03.07.15.57; Mon, 03 Apr 2023 07:16:09 -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=@gmail.com header.s=20210112 header.b=Pl4YFCMs; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232898AbjDCOPC (ORCPT + 99 others); Mon, 3 Apr 2023 10:15:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59784 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232893AbjDCOPB (ORCPT ); Mon, 3 Apr 2023 10:15:01 -0400 Received: from mail-pj1-x1034.google.com (mail-pj1-x1034.google.com [IPv6:2607:f8b0:4864:20::1034]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E8C404EF4 for ; Mon, 3 Apr 2023 07:14:59 -0700 (PDT) Received: by mail-pj1-x1034.google.com with SMTP id r7-20020a17090b050700b002404be7920aso28642715pjz.5 for ; Mon, 03 Apr 2023 07:14:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1680531299; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=rOT7gHoRFPuvocHIp4c9gnzq9W/CXIWnAUXdAPq4PzA=; b=Pl4YFCMsfoY4pWCKmCGkqgMlm1F7cFCxqMsNwKhQqNXSnB9GNrHTyEIXQFTLMKmKj2 XR3+BD90NqUge9PG828rXW7U5hybj3a3ds2Ta6baNnjSPR3m/sYocvcpkjdPSXTZ3zFy 07TQdRpPB1RMC0rYse2yOIahHF7OvDMz3RdzxuXBT1bPJJmtj+YatopZWIVsfsKeEX0U +uizdH319DcSJQbtSNVLpSAD6BsSJzn3doGBKPhWRwqBvs2dhtjjS8nsHxP+xJVrnRsy Y7XPD4FHKMgtXfmgYsYBCvwyY/u4aK5hm6RQrRknyWHV/SHmBMAiNPOczOfWAbJyQwoZ oF6A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680531299; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=rOT7gHoRFPuvocHIp4c9gnzq9W/CXIWnAUXdAPq4PzA=; b=UvelK+77Y+Hlc45aLDqLfivjVR0KLEvZxm5O6XpIE2olMGIR8r+Llqni533u3ap0PN vZKz+boBhwpkqUgLp2qNemrwQcNTKKnQLUEfxNF1shOHpcHgnSqT6iN/H3shHUZHop4R 12SGKeIDievSE6veccYmT1TUwQ81jVllbK9/fX5HXZ+FMO78CRf9udOx62tXDnqqnBUq 1qZAYEYiB9GqmvkxqfU70W3iphh1SoNxertcapHW3KhaK+JaTaLKsMFINxwz1pREWIvp ezUwxQ9dGBVM9ghTdqHBKUiqyEp5JludprUrI1cnkcb7sAFMbkYjIP3FRg+URLGy0vUo +KcQ== X-Gm-Message-State: AAQBX9eKnv+/ebxdFl5nTV/Kdm8BKINTh7NaxbKgjUTIpQZuTKrDRTU/ ELOOdrZkuH91uLY1/VdbCqU= X-Received: by 2002:a17:902:e810:b0:1a1:a531:460e with SMTP id u16-20020a170902e81000b001a1a531460emr43515602plg.63.1680531299331; Mon, 03 Apr 2023 07:14:59 -0700 (PDT) Received: from [172.30.1.1] ([14.32.163.5]) by smtp.gmail.com with ESMTPSA id o4-20020a1709026b0400b0019e31e5f7f9sm6667588plk.71.2023.04.03.07.14.57 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 03 Apr 2023 07:14:58 -0700 (PDT) Message-ID: <98dff2ac-c7f7-1e26-06a6-82be72ace2bf@gmail.com> Date: Mon, 3 Apr 2023 23:14:56 +0900 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.9.0 Subject: Re: [PATCH v1 09/14] extcon: Use device_match_of_node() helper Content-Language: en-US To: Andy Shevchenko , Bumwoo Lee , linux-kernel@vger.kernel.org Cc: MyungJoo Ham , Chanwoo Choi References: <20230322144005.40368-1-andriy.shevchenko@linux.intel.com> <20230322144005.40368-10-andriy.shevchenko@linux.intel.com> From: Chanwoo Choi In-Reply-To: <20230322144005.40368-10-andriy.shevchenko@linux.intel.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-1.3 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM, NICE_REPLY_A,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS 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 On 23. 3. 22. 23:40, Andy Shevchenko wrote: > 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: Applied it. -- Best Regards, Samsung Electronics Chanwoo Choi