Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp1692660pxb; Mon, 12 Apr 2021 04:35:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx1K4rU7PgLN+2Q86q34SF4fOZXDwlhlZwvIgXFoyjsIg0gPcprEpYjLtRtahj+ZAV0S3hc X-Received: by 2002:a17:906:3295:: with SMTP id 21mr26854788ejw.88.1618227308271; Mon, 12 Apr 2021 04:35:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618227308; cv=none; d=google.com; s=arc-20160816; b=AQdJfEeHsZzVDcTt7mRLWGTHwNdZYZDVdp+o/xuSwNAP7KjdWSatQVx19iRRWR06Ux q95ied0J7f3lCRm+Qn+q3k9F00YES7AEAsq/nXMOfanyXkcsk5tErO+V3rq4KoI1Q3fX 7sSEW1gots3biWXpV95oA6NNvNeN61UEcTn/wDEqg/uQsDLA0aWpTqwIwAhS1+/keZXM i21y6EV3e2tbF/g12BroxDcmUPtd/9PfvGwvRWgw1H5zP0fjIz6FAYLdDd9j0EWvGC+K Z4LeEvZEuIYOkodurRliEf7AgF6MFYLqujEYGidn+eHUiheCKyKV/GfsYcfvvbui1kxe OMpw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=L/J0PuGsoQ9jKaU7QDPzGYAqcrZkxGOtbfN36+E+p8I=; b=hD9XoEjMSt00B0u6W9TCWe3RJATJLQLPBVeKV0HJZRhhDoR3P37cKxmHi+/+DzDXRQ alOjt0BueoaOBeTTbEYBBo6F8fOzNi2EEjSepoAqYX55lb31i8u6IRJqJE27I+xEyXEo Nq5o38//rvCzNUsWMIJDV7ZTUT+AmHeXMeK4JnUgZUpHnxyvmmDlcaXnSMgBJinduPFt 5z3PjnEFP/969qvYAK8j55GKe1V42JMfqbTgpQc5dbXhQMCHEbHm9dgDpNrKPj9XbGeC TN9ukRmfAHawzvkNMz4FOdNH9qiQKBdxSWnus3bNx17WGsJKL0vCOtFilszEW9UMrizK NI7w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=jxUM1Vlc; 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=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id gf2si7930674ejb.500.2021.04.12.04.34.44; Mon, 12 Apr 2021 04:35:08 -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=@chromium.org header.s=google header.b=jxUM1Vlc; 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=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240444AbhDLLbP (ORCPT + 99 others); Mon, 12 Apr 2021 07:31:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43676 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240441AbhDLLbN (ORCPT ); Mon, 12 Apr 2021 07:31:13 -0400 Received: from mail-pg1-x530.google.com (mail-pg1-x530.google.com [IPv6:2607:f8b0:4864:20::530]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 15263C06138C for ; Mon, 12 Apr 2021 04:30:56 -0700 (PDT) Received: by mail-pg1-x530.google.com with SMTP id d10so9108779pgf.12 for ; Mon, 12 Apr 2021 04:30:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=L/J0PuGsoQ9jKaU7QDPzGYAqcrZkxGOtbfN36+E+p8I=; b=jxUM1Vlcs9HJZ+XkiurdTz3RLTTchqy8JW4keBeGimx/NgdkjzIga2gTMja8jtvpFl IOKgDwG9Y+ek4G6T7/+j8mL7dekkWw2fjK6HFnrzMnznTrQM0TDK6YVlOA1Q179cYHCU t7JDL2nkctQpW0yNdQ200MfR/ugZQmOgXdMkQ= 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=L/J0PuGsoQ9jKaU7QDPzGYAqcrZkxGOtbfN36+E+p8I=; b=CA0a8eitRScpsLoQ9P/stT3xDPOC6mDbRj37nZYlLp0KUygzoabSjorNcRXYBUKL8A v1uC9mmtByVmz7C6y/ofgLyDJHGulymPlReKawFV5qcsWFR4zcDCrA3DlBSDmP+Gbh5J AVH6IaAwuIbGxT35A0X5E1UVn7kzgP7+78VN+F3wHkvyVf7nSNLQGbGL+NO6gZp4Usm6 spBth+vMKlSjo2n7w48sgi6nnFz0oKeNt/DyEjM8qj9aayruCp/Yyj5E+5hKW+kMMRY0 hReb8GfSPcpam2bxRmRo+AKMtsMuC535qGTj9GjmpEGtntuaYKspHRJLtLdhUxbBylFo P6lA== X-Gm-Message-State: AOAM533hbQS4oILXysDLYdLY1u1R/dYRd+mdI7mR1RcW/JAF+svP91Zf sywPBHfDx5vFcNvwg4QwhuDflw== X-Received: by 2002:a62:754c:0:b029:242:22d1:58af with SMTP id q73-20020a62754c0000b029024222d158afmr23588812pfc.11.1618227055652; Mon, 12 Apr 2021 04:30:55 -0700 (PDT) Received: from ikjn-p920.tpe.corp.google.com ([2401:fa00:1:b:32f1:1e05:984e:e039]) by smtp.gmail.com with ESMTPSA id 129sm1572413pfv.159.2021.04.12.04.30.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 12 Apr 2021 04:30:55 -0700 (PDT) From: Ikjoon Jang To: linux-input@vger.kernel.org, devicetree@vger.kernel.org Cc: Hsin-Yi Wang , Dmitry Torokhov , Nicolas Boichat , Ikjoon Jang , Dmitry Torokhov , Jiri Kosina , Benjamin Tissoires , Jiri Kosina , linux-kernel@vger.kernel.org Subject: [PATCH v4 2/2] HID: google: Add of_match table to Whiskers switch device. Date: Mon, 12 Apr 2021 19:30:20 +0800 Message-Id: <20210412113020.2724134-3-ikjn@chromium.org> X-Mailer: git-send-email 2.31.1.295.g9ea45b61b8-goog In-Reply-To: <20210412113020.2724134-1-ikjn@chromium.org> References: <20210412113020.2724134-1-ikjn@chromium.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add a device tree match table for "cros-cbas" switch device. Signed-off-by: Ikjoon Jang Reviewed-by: Dmitry Torokhov Acked-by: Jiri Kosina --- (no changes since v1) Please note that v3 was submitted in 28 Oct 2019, 1.5yrs ago. Link(v2): https://patchwork.kernel.org/project/linux-input/patch/20191021030158.32464-1-ikjn@chromium.org/ --- drivers/hid/hid-google-hammer.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/drivers/hid/hid-google-hammer.c b/drivers/hid/hid-google-hammer.c index d9319622da44..be4f9f3dbbba 100644 --- a/drivers/hid/hid-google-hammer.c +++ b/drivers/hid/hid-google-hammer.c @@ -17,6 +17,7 @@ #include #include #include +#include #include #include #include @@ -272,12 +273,21 @@ static const struct acpi_device_id cbas_ec_acpi_ids[] = { }; MODULE_DEVICE_TABLE(acpi, cbas_ec_acpi_ids); +#ifdef CONFIG_OF +static const struct of_device_id cbas_ec_of_match[] = { + { .compatible = "google,cros-cbas" }, + { }, +}; +MODULE_DEVICE_TABLE(of, cbas_ec_of_match); +#endif + static struct platform_driver cbas_ec_driver = { .probe = cbas_ec_probe, .remove = cbas_ec_remove, .driver = { .name = "cbas_ec", .acpi_match_table = ACPI_PTR(cbas_ec_acpi_ids), + .of_match_table = of_match_ptr(cbas_ec_of_match), .pm = &cbas_ec_pm_ops, }, }; -- 2.31.1.295.g9ea45b61b8-goog