From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756147AbcCCHfR (ORCPT ); Thu, 3 Mar 2016 02:35:17 -0500 Received: from mga14.intel.com ([192.55.52.115]:37127 "EHLO mga14.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751415AbcCCHfQ (ORCPT ); Thu, 3 Mar 2016 02:35:16 -0500 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.22,531,1449561600"; d="scan'208";a="58933494" Subject: Re: [PATCH 1/7] extcon: usb-gpio: add device binding for platform device To: Chanwoo Choi , Felipe Balbi , Mathias Nyman , Greg Kroah-Hartman , Lee Jones , Heikki Krogerus , MyungJoo Ham References: <1456987064-3365-1-git-send-email-baolu.lu@linux.intel.com> <1456987064-3365-2-git-send-email-baolu.lu@linux.intel.com> <56D7E6A0.40103@samsung.com> Cc: linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org From: Lu Baolu Message-ID: <56D7E92F.2060300@linux.intel.com> Date: Thu, 3 Mar 2016 15:35:11 +0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.5.1 MIME-Version: 1.0 In-Reply-To: <56D7E6A0.40103@samsung.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 03/03/2016 03:24 PM, Chanwoo Choi wrote: > Hell Lu, > > On 2016년 03월 03일 15:37, Lu Baolu wrote: >> This is needed to handle the GPIO connected USB ID pin found on >> Intel Baytrail devices. >> >> Signed-off-by: Lu Baolu >> Reviewed-by: Felipe Balbi >> --- >> drivers/extcon/extcon-usb-gpio.c | 7 +++++++ >> 1 file changed, 7 insertions(+) >> >> diff --git a/drivers/extcon/extcon-usb-gpio.c b/drivers/extcon/extcon-usb-gpio.c >> index 2b2fecf..af9c8b0 100644 >> --- a/drivers/extcon/extcon-usb-gpio.c >> +++ b/drivers/extcon/extcon-usb-gpio.c >> @@ -206,6 +206,12 @@ static const struct of_device_id usb_extcon_dt_match[] = { >> }; >> MODULE_DEVICE_TABLE(of, usb_extcon_dt_match); >> >> +static const struct platform_device_id usb_extcon_platform_ids[] = { >> + { .name = "extcon-usb-gpio", }, >> + { /* sentinel */ } >> +}; >> +MODULE_DEVICE_TABLE(platform, usb_extcon_platform_ids); >> + >> static struct platform_driver usb_extcon_driver = { >> .probe = usb_extcon_probe, >> .remove = usb_extcon_remove, >> @@ -214,6 +220,7 @@ static struct platform_driver usb_extcon_driver = { >> .pm = &usb_extcon_pm_ops, >> .of_match_table = usb_extcon_dt_match, >> }, >> + .id_table = usb_extcon_platform_ids, >> }; >> >> module_platform_driver(usb_extcon_driver); >> > Looks good to me. > > Acked-by: Chanwoo Choi Thank you! > > Best Regards, > Chanwoo Choi > >