Received: by 2002:a25:23cc:0:0:0:0:0 with SMTP id j195csp1094105ybj; Thu, 7 May 2020 14:49:06 -0700 (PDT) X-Google-Smtp-Source: APiQypKDxjj3h68zxe0oWcQ3yb0scRxgS1ONJZJj1LIpFAOdzLXfuiKd6yeJOnqM/G3B9R8nnZlQ X-Received: by 2002:a50:a365:: with SMTP id 92mr14392310edn.220.1588888146382; Thu, 07 May 2020 14:49:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588888146; cv=none; d=google.com; s=arc-20160816; b=NnP2sAeCm98E6Bx1V9irLz5mchpEDy+TRyzRqZlB/dFfcl/OCcaLLFfJ+qZAfwLclj sMTFUpL+3oBCXWWB6duL+r5MaA2125U2NlZe/yV1mPonKQ6lN+0aMrib1wARDnig7KiL SoGTZgyhRrKrE1HndXanTygev5BUIKhLS3414aS/9CgA1l6/MhSovgMlrpa/5rmN9TK0 V93fucygY0WH3bCTFk7BZoeuyjVqgktd0KPN0TjVe9z5an5b39PAZuaCKi72HUNvHTS+ S0QhXfneM1VH/ZQ6qhBc4HEWwR2+Gq3VKcssS5jrjAr3XeFV7zwGSSsEqRkNIERLlO18 sOeQ== 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 :dkim-signature; bh=07JG3t9XSdzjKBR3gO/dh2PoEqEi6IleGfYwBJiTgFU=; b=qMaof64JclFZf+4L9LIDp4TBecntjbFHycnqi02fnLcadZU6swNjtMpHubihIjH2lS RTk/c+Nyka5XepZY9W+mTzp8xEKOSIFwDkfkHfo+Vtn4N1eZzqzmpfBxzxpfgzQ50brQ +cMygMyZ+hrIiXfWRaH36/XKeSTGUbLbLzWl5X14ZCyitrcEkU980hOMCTi24hYiqvwl c2R1ev1P/Gv9Gzk5MiWhC8JpmwcrUdPMJtcp/ZP4ALSEM+m+1JVieyw1xyVv2QdgC2+s P6tSndeCdDyWaiSyYkByLL90uTWJXA/d2JKO1eOPGAEbSwfms1yW53wAbC5NFR8vjrcI ig9A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=f7Tp4AxM; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u14si3828864ejz.292.2020.05.07.14.48.32; Thu, 07 May 2020 14:49:06 -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; dkim=pass header.i=@linaro.org header.s=google header.b=f7Tp4AxM; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727119AbgEGVrH (ORCPT + 99 others); Thu, 7 May 2020 17:47:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32842 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727837AbgEGVrD (ORCPT ); Thu, 7 May 2020 17:47:03 -0400 Received: from mail-wr1-x444.google.com (mail-wr1-x444.google.com [IPv6:2a00:1450:4864:20::444]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2BFF2C05BD0A for ; Thu, 7 May 2020 14:47:03 -0700 (PDT) Received: by mail-wr1-x444.google.com with SMTP id g13so8208675wrb.8 for ; Thu, 07 May 2020 14:47:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=07JG3t9XSdzjKBR3gO/dh2PoEqEi6IleGfYwBJiTgFU=; b=f7Tp4AxMK79ePHJ5Z6v06RicBBOBeNIBdaFoBBJLf8ilErbSMR8eZzQDGVWYP0iVHJ gR9zdkINJcohMBhl+dTul5A/1LZttPrk1WRa1Yn/wa0BY6R7ELGPvLh7J6k6mQxzDdSK Y/dtaIODiwsQshKeMQvQGsqxprJ/frari2oF5oHE57Pnw1lSQiRkERuX6O6L1IC0IU4r n5OXEqU7U3+14mmRGHnFWOqJDezDSOn3RnpIS5ydRWlSXW+b0X5H81frZg4KlSKWLvnM kWR64ON2V3+Q2DjeXYZGU+hzhv4t9kUj+inxrnRhiU0gfJfn/2/o23pyr5L38UIdrYjS QoSg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=07JG3t9XSdzjKBR3gO/dh2PoEqEi6IleGfYwBJiTgFU=; b=JBlNmzo5rRRHy54S32siaVhfAbg/bAUbACkgMgafPr5NgrXL98CRlCgclYVkcQLcjl LQi4syUXHn2irLJYSPp/AyQAd8MhQKUU5Y+n3rAlKdolqPkYPHH6QE5OKbi9JieHK7ek 9KZBszMWWtWCQ6oVbYsTJ0f6psh+xTSDOkZ4BYg4h4KAso0TMgku4mtNQwOw3+hBFNmV JPLNpMWJKyADacSeTmdJFs8//TlTQDtMec3Qp4qZazxlYpHK+khP6YF7P8CNbGGkOI6j aSf4GJHBUhR76Lv1famPJq3u7oPZBFc+VTWnHBZ+Y4e8u8D7JAPnb6kCMG6Ys0UicLfY ClFA== X-Gm-Message-State: AGi0PubITBvsKFjmYdM/wx0GxMhNQYR4akDccVM9fdOYxOVKPhIV8ZoL P0R8jvoMxQxP/tVwvpDTvVzZDQ== X-Received: by 2002:adf:b1c9:: with SMTP id r9mr19373343wra.271.1588888021879; Thu, 07 May 2020 14:47:01 -0700 (PDT) Received: from localhost.localdomain ([176.61.57.127]) by smtp.gmail.com with ESMTPSA id a10sm6653538wrp.0.2020.05.07.14.47.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 May 2020 14:47:00 -0700 (PDT) From: Bryan O'Donoghue To: heikki.krogerus@linux.intel.com, robh+dt@kernel.org, linux-usb@vger.kernel.org, devicetree@vger.kernel.org Cc: gregkh@linuxfoundation.org, linux-kernel@vger.kernel.org, nikolaus.voss@loewensteinmedical.de, andriy.shevchenko@linux.intel.com, garsilva@embeddedor.com, keescook@chromium.org, Bryan O'Donoghue Subject: [PATCH v2 2/2] usb: typec: tps6598x: Add OF probe binding Date: Thu, 7 May 2020 22:47:33 +0100 Message-Id: <20200507214733.1982696-3-bryan.odonoghue@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200507214733.1982696-1-bryan.odonoghue@linaro.org> References: <20200507214733.1982696-1-bryan.odonoghue@linaro.org> 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 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 --- 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