From patchwork Wed Jan 20 00:53:01 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: jzp0409 X-Patchwork-Id: 12031219 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-15.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id C5524C433DB for ; Wed, 20 Jan 2021 01:42:42 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 87BEF2245C for ; Wed, 20 Jan 2021 01:42:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730979AbhATBmY (ORCPT ); Tue, 19 Jan 2021 20:42:24 -0500 Received: from m12-18.163.com ([220.181.12.18]:48870 "EHLO m12-18.163.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729906AbhATBmE (ORCPT ); Tue, 19 Jan 2021 20:42:04 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=163.com; s=s110527; h=From:Subject:Date:Message-Id:MIME-Version; bh=1Gm7H tgDNLpNAVltYOoyuVgoYF8I/DZ9P/osH6rUo/E=; b=HUIeffIB1Mai1UpHVT4bG FlHArhbhEbXsHSYH/0WvQypzMWBm+gWoDZsuRaCwg7LdygfNfaN66CfrlTnfi3e5 EE/IfgL9tTQ2ucF3c9eI24ENhAcfNkEFZZbcEqA7K1nbdHeKPE7zqvqaYnw+1wjU KpQhGJxI0RshZnwPWektNM= Received: from jiangzhipeng.ccdomain.com (unknown [218.94.48.178]) by smtp14 (Coremail) with SMTP id EsCowAC3DNbjfgdgKeMeQA--.56094S2; Wed, 20 Jan 2021 08:53:04 +0800 (CST) From: jzp0409 To: dmitry.torokhov@gmail.com Cc: linux-input@vger.kernel.org, jiangzhipeng Subject: [PATCH] Input: ft5x06 - of_device_id using CONFIG_OF Date: Wed, 20 Jan 2021 08:53:01 +0800 Message-Id: <20210120005301.2158-1-jzp0409@163.com> X-Mailer: git-send-email 2.30.0.windows.2 MIME-Version: 1.0 X-CM-TRANSID: EsCowAC3DNbjfgdgKeMeQA--.56094S2 X-Coremail-Antispam: 1Uf129KBjvdXoWrtrW3KF13Ar47Gw1fXw4fXwb_yoWDtrc_ur yrXrn7trWrAr1vkF1qq343Zr92q3W8W3s5Ww1UKF45Zw1rXan8GFsxWwn8J3yUCr48tFW7 u3WfWF1rKa129jkaLaAFLSUrUUUUUb8apTn2vfkv8UJUUUU8Yxn0WfASr-VFAUDa7-sFnT 9fnUUvcSsGvfC2KfnxnUUI43ZEXa7IUbzwZDUUUUU== X-Originating-IP: [218.94.48.178] X-CM-SenderInfo: hm2sikiqz6il2tof0z/1tbiRBAghlSIiKBF0AAAsT Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org From: jiangzhipeng ft5x06 use of_device_id,Use CONFIG_OF include Signed-off-by: jiangzhipeng --- drivers/input/touchscreen/edt-ft5x06.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/input/touchscreen/edt-ft5x06.c b/drivers/input/touchscreen/edt-ft5x06.c index 2eefbc2..c69fde0 100644 --- a/drivers/input/touchscreen/edt-ft5x06.c +++ b/drivers/input/touchscreen/edt-ft5x06.c @@ -1371,6 +1371,7 @@ static SIMPLE_DEV_PM_OPS(edt_ft5x06_ts_pm_ops, }; MODULE_DEVICE_TABLE(i2c, edt_ft5x06_ts_id); +#ifdef CONFIG_OF static const struct of_device_id edt_ft5x06_of_match[] = { { .compatible = "edt,edt-ft5206", .data = &edt_ft5x06_data }, { .compatible = "edt,edt-ft5306", .data = &edt_ft5x06_data }, @@ -1382,6 +1383,7 @@ static SIMPLE_DEV_PM_OPS(edt_ft5x06_ts_pm_ops, { /* sentinel */ } }; MODULE_DEVICE_TABLE(of, edt_ft5x06_of_match); +#endif static struct i2c_driver edt_ft5x06_ts_driver = { .driver = {