Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp1753529ybk; Mon, 11 May 2020 03:31:27 -0700 (PDT) X-Google-Smtp-Source: APiQypKwi+tFulFt/H98Dr5vhosjoOCpOj9tGalJHcug3i8g8SZ2xM5GufnxHanK4qFUJWYsfPCa X-Received: by 2002:aa7:d311:: with SMTP id p17mr12788984edq.73.1589193087449; Mon, 11 May 2020 03:31:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589193087; cv=none; d=google.com; s=arc-20160816; b=T69izKK8l0AAWiokfoPC3gyK57/xyrO6aDCEgVWzm5QNe62DkutFnuaCB1KaGBV9Yl mf1HJWoPD3dlVRsevPnrCtz5BB13pTq4U8NbLd3+fB6D9HJNVR3dgtI6hNafcUSPUg+r DiDBMYUNfGWa3xlTZ6yxEhuC58VqKKHfb09esayEqQQl8fmlHuRGk3FAaZ9JWsLcsWNu blJLKZ8ZAceOxUb2NIcRZ6nDTmyoq7FkXGg5vgbqKqeZ6Be+LRzJrzuFkQXuOgEFfula UjAUPMJwXsVBJG5VkiX8WMCiXYIRecYcQ9CBM/yye7XxZtx+MhRQIdoahMcffLkMlwdw noTg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :ironport-sdr:ironport-sdr; bh=3BKAF9SnpvNlLiEcSUR7HUmYdD3TB0GAkjue4CBrecE=; b=rq5JsJq9+KyOEbf4affTmn0rmFd0aK9QbkN5bHOVvCZoYfjOJa2OXA16ql2GoVonEU /e5DeBE4qr7cDXulqR9VaCIfebQswZfAeieb4MCX+Un3lcofjWTdu/eZs6yTi9GJN6l0 hK/Y8gypHB3en+1Fb0mTZOG5NU21c/iP/WW1XqTVIS/ySK6xHu0B836ZTHEZX3Bn1YM/ z8XB1Awthnz2x72yBHEWyt6KuKHjkcfEEBjMbtB4R4pzXnkw4i43VTg+/s8IgIlE8gGa gUjjBmjeqFlEtx/aM5djAUnGXr5Ir4xfD8rGpVtJwOwaoxaeOaEh8ypux+A+jXNGfLH9 MzPg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id n2si1587892edy.425.2020.05.11.03.31.04; Mon, 11 May 2020 03:31:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S1728683AbgEKK3Q (ORCPT + 99 others); Mon, 11 May 2020 06:29:16 -0400 Received: from mga14.intel.com ([192.55.52.115]:6665 "EHLO mga14.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729394AbgEKK3M (ORCPT ); Mon, 11 May 2020 06:29:12 -0400 IronPort-SDR: ohqQBCoaP44PG3Ey/Bu+Ti6JK3Zrkc6VE8+t3MJ0FQhWDyvOudECoYUDZ4/RL+4Evsiu/2Exu1 WWjH2KToFnAA== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 May 2020 03:29:11 -0700 IronPort-SDR: 9uf0yd90aTqaDUwYgL6zXXxeYu6PTJ2dTvRv2AmDOh9xdegGp85EJ14a21rEYZqTQphm+vLleu 5diMp+bZJZPA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.73,379,1583222400"; d="scan'208";a="371181275" Received: from kuha.fi.intel.com ([10.237.72.162]) by fmsmga001.fm.intel.com with SMTP; 11 May 2020 03:29:08 -0700 Received: by kuha.fi.intel.com (sSMTP sendmail emulation); Mon, 11 May 2020 13:29:07 +0300 Date: Mon, 11 May 2020 13:29:07 +0300 From: Heikki Krogerus To: Bryan O'Donoghue Cc: robh+dt@kernel.org, linux-usb@vger.kernel.org, devicetree@vger.kernel.org, gregkh@linuxfoundation.org, linux-kernel@vger.kernel.org, nikolaus.voss@loewensteinmedical.de, andriy.shevchenko@linux.intel.com, garsilva@embeddedor.com, keescook@chromium.org Subject: Re: [PATCH v2 2/2] usb: typec: tps6598x: Add OF probe binding Message-ID: <20200511102907.GE1295548@kuha.fi.intel.com> References: <20200507214733.1982696-1-bryan.odonoghue@linaro.org> <20200507214733.1982696-3-bryan.odonoghue@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200507214733.1982696-3-bryan.odonoghue@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, May 07, 2020 at 10:47:33PM +0100, Bryan O'Donoghue wrote: > Adds a MODULE_DEVICE_TABLE() to allow probing of this driver from a DTS > setting. > > Cc: Heikki Krogerus > Cc: Greg Kroah-Hartman > Cc: Nikolaus Voss > Cc: Andy Shevchenko > Cc: Gustavo A. R. Silva > Cc: Kees Cook > Cc: linux-usb@vger.kernel.org > Cc: linux-kernel@vger.kernel.org > Signed-off-by: Bryan O'Donoghue Reviewed-by: Heikki Krogerus > --- > drivers/usb/typec/tps6598x.c | 7 +++++++ > 1 file changed, 7 insertions(+) > > diff --git a/drivers/usb/typec/tps6598x.c b/drivers/usb/typec/tps6598x.c > index 0698addd1185..defa651282b0 100644 > --- a/drivers/usb/typec/tps6598x.c > +++ b/drivers/usb/typec/tps6598x.c > @@ -563,6 +563,12 @@ static int tps6598x_remove(struct i2c_client *client) > return 0; > } > > +static const struct of_device_id tps6598x_of_match[] = { > + { .compatible = "ti,tps6598x", }, > + {} > +}; > +MODULE_DEVICE_TABLE(of, tps6598x_of_match); > + > static const struct i2c_device_id tps6598x_id[] = { > { "tps6598x" }, > { } > @@ -572,6 +578,7 @@ MODULE_DEVICE_TABLE(i2c, tps6598x_id); > static struct i2c_driver tps6598x_i2c_driver = { > .driver = { > .name = "tps6598x", > + .of_match_table = tps6598x_of_match, > }, > .probe_new = tps6598x_probe, > .remove = tps6598x_remove, > -- > 2.25.1 thanks, -- heikki