Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2231047imu; Sat, 10 Nov 2018 10:13:51 -0800 (PST) X-Google-Smtp-Source: AJdET5di50Wo+4/Gt7SPnZjqt5wwOIU8jdFqkNCyRwLfhXVuTE1xRsceokmrGZjIexKfhWgT1sLO X-Received: by 2002:a65:4784:: with SMTP id e4mr11519100pgs.12.1541873631485; Sat, 10 Nov 2018 10:13:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541873631; cv=none; d=google.com; s=arc-20160816; b=m7C2e6ZqyZe1Fws2Gf0CKeSfISJNr3j59ICooFeNB3pc6pXW1spASZ5GBTXo1viHIx Nb1OvnUxBS0Sh3rtIB0XZ4+8s3i/zhF5AOwY1eHQwpFxRrG6s2FV6olN3qCFVeNw4re/ jiQC9WmZ/A9pdyyLMVjQRNHMeVxbTmxe5HlcA/QRY6/CCDU+SqWBk8IvVxLq02duxRYR iBZ2ilTFOJHXlYC/IXJDiGSALuepp13iQ1P6rDw2k9HeSsjveZMlHaMncfMwUFATfAGn BN/LdnMUgx2lqPTTw8O2gEcaQhtYGQMlX12Ia8ujZyVNob4o1PkshaNvrFFJ1V2fRVjm t8yA== 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 :references:in-reply-to:message-id:date:subject:cc:to:from; bh=MVDyViOfbN+Pr5XkDz4PBxPqRO1JtVP8RPDR11+Ifrg=; b=liS9m64kE/2VDLa0/n3qhpesZzWI33ZpFmnPeQZhJ+CfSEi+J8V4vQ4wuDiPTkMhze wX0FcCk6H2nrYwOLK3AU7hEwoWRPMW6SN99v6tMBw6PwqJ8eKsJyxMa84Xv9VLNzyYl1 AbiF+e3iSkCMT3sL6+W8kqxKBcxKwp8kshmW+RCh9iz/APepXJMjfnHe1fd0i8jija/S x6wi/9fE5hnj+EE0sboM10HwK4XrQXUMQN23J/Ipnojk346cb8HBOeGEEIlkk8onhBay IRGfb0y4QMdvp+H0ADTNvnooGY3AzXYlZv+SlSZYVoSpI5lyGfjqaP5fSiHh+eOE1lLG mvIA== 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=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b39-v6si12191726pla.22.2018.11.10.10.13.36; Sat, 10 Nov 2018 10:13:51 -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=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726933AbeKKD5A (ORCPT + 99 others); Sat, 10 Nov 2018 22:57:00 -0500 Received: from mga07.intel.com ([134.134.136.100]:20276 "EHLO mga07.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726244AbeKKD5A (ORCPT ); Sat, 10 Nov 2018 22:57:00 -0500 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga105.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 10 Nov 2018 10:11:07 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.54,488,1534834800"; d="scan'208";a="95270625" Received: from black.fi.intel.com ([10.237.72.28]) by FMSMGA003.fm.intel.com with ESMTP; 10 Nov 2018 10:11:03 -0800 Received: by black.fi.intel.com (Postfix, from userid 1003) id 044D87A8; Sat, 10 Nov 2018 20:11:02 +0200 (EET) From: Andy Shevchenko To: MyungJoo Ham , Chanwoo Choi , linux-usb@vger.kernel.org, Felipe Balbi , Guenter Roeck , Heikki Krogerus , Roger Quadros , linux-pm@vger.kernel.org, "Rafael J. Wysocki" , Sebastian Reichel , linux-omap@vger.kernel.org, Darren Hart , platform-driver-x86@vger.kernel.org, Greg Kroah-Hartman , linux-kernel@vger.kernel.org, Chen-Yu Tsai , Hans de Goede Cc: Andy Shevchenko Subject: [PATCH v1 4/5] usb: dwc3: drd: Switch to device property for 'extcon' handling Date: Sat, 10 Nov 2018 20:11:00 +0200 Message-Id: <20181110181101.24557-4-andriy.shevchenko@linux.intel.com> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20181110181101.24557-1-andriy.shevchenko@linux.intel.com> References: <20181110181101.24557-1-andriy.shevchenko@linux.intel.com> 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 Switch to device property for 'extcon' handling. No functional change intended. Signed-off-by: Andy Shevchenko --- drivers/usb/dwc3/drd.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/usb/dwc3/drd.c b/drivers/usb/dwc3/drd.c index e7e421521a34..5dc4cddd5b68 100644 --- a/drivers/usb/dwc3/drd.c +++ b/drivers/usb/dwc3/drd.c @@ -10,6 +10,7 @@ #include #include #include +#include #include "debug.h" #include "core.h" @@ -485,8 +486,8 @@ static struct extcon_dev *dwc3_get_extcon(struct dwc3 *dwc) struct device_node *np_phy, *np_conn; struct extcon_dev *edev; - if (of_property_read_bool(dev->of_node, "extcon")) - return extcon_get_edev_by_phandle(dwc->dev, 0); + if (device_property_read_bool(dev, "extcon")) + return extcon_get_edev_by_phandle(dev, 0); np_phy = of_parse_phandle(dev->of_node, "phys", 0); np_conn = of_graph_get_remote_node(np_phy, -1, -1); -- 2.19.1