From patchwork Fri Jan 27 11:28:16 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jean Delvare X-Patchwork-Id: 49235 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp781609wrn; Fri, 27 Jan 2023 03:30:13 -0800 (PST) X-Google-Smtp-Source: AMrXdXvnFDbLZycVx9u+/TniooWuk4rc4M/QUhuSPSo+U5fsCeIez+joJNmGSxMZXS8PL+D/orbK X-Received: by 2002:a62:6104:0:b0:588:a156:6a3d with SMTP id v4-20020a626104000000b00588a1566a3dmr34074143pfb.26.1674819013247; Fri, 27 Jan 2023 03:30:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674819013; cv=none; d=google.com; s=arc-20160816; b=fWlvagAhCceRYYDsqC0P1hBrqCYInVVjX9cpOER5MfSaMq4PQe9teUmDrixm/y3Nxg 4RX3l2eFPBASNVkOIZ0Ek/Fdb4pQeCuJYZRl00s6uZ+xSK8UD2jmEekVmLzu4GYMc5Eb l7YkrHlKFNlWObSbcamJMEBTaY0hAIS+Asn9tZ6OMxYs2CEixUyWBw2BoosP8qhXCCDK e+tsFkvIV3+QuAzObw0Y6HwSddsu5UR86OdXX4bLTNS8BiEfssRXqwEVbD8TncdVStiJ +HFmtbOmPKnUJJc9/aFHIg/ATUrEbl62a2dXw1fWwNRKyWbYvD3VFq+ghiTpTsouDfN6 NRWg== 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 :organization:message-id:subject:cc:to:from:date:dkim-signature :dkim-signature; bh=tDOqTbs0S3Y0iW7HxTYwoZGCDL2WVLefPe2n98YmMuk=; b=JjaUhCVZmZpszCi9HY4y4a2kobNHMnNubL3YkRQbY1WVkw+aHtSQ7UkNOh08JIq+j+ vmxvI6RdEaEVZkXqn2vsjw1JVGn5gdTuNbLj2eZOW5HJ4mMEhpkPTaMlqm7uDzyFGQl6 ezcEdYuZeTppAyeObzos3wPyp9ekAuicJcpx0FyhRoC2gs+3WdxkDiMj7s3smu2L9Z4y oEuJyy/L/fyCIebTaEUbQfs7P8k9tYNuSX9shQTZHSV/nurfwHfJutWJPhTLc3M4sV7G clIYn1HzKqCqYK9IWMq/EqEdkzkrWLSQ9adktS4a0OgPlMoCgUS0H9DcWuEPwZYX4Hh1 XV3g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=eQmkJHzY; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f66-20020a625145000000b0056cb8f6f027si4437107pfb.357.2023.01.27.03.30.00; Fri, 27 Jan 2023 03:30:13 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=eQmkJHzY; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233351AbjA0L3b (ORCPT + 99 others); Fri, 27 Jan 2023 06:29:31 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42068 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233326AbjA0L3O (ORCPT ); Fri, 27 Jan 2023 06:29:14 -0500 Received: from smtp-out2.suse.de (smtp-out2.suse.de [IPv6:2001:67c:2178:6::1d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B6FC17E681; Fri, 27 Jan 2023 03:28:19 -0800 (PST) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id 33D662003F; Fri, 27 Jan 2023 11:28:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1674818898; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=tDOqTbs0S3Y0iW7HxTYwoZGCDL2WVLefPe2n98YmMuk=; b=eQmkJHzYyShNotnOsAuCffwXvYJOAC9lLBUOLg8k2yXbrXdAnumj7p3nB7tMaQVYRx0bbO ao5iAwLyJWtgyXlirw1GU52L4FMTDIa5D0gDdF+8ZYdP+mZOb+kJqEv0dFqPa04C4hvVue uOxm4NxBBtNSP3kLD1lob03F7hMgmY8= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1674818898; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=tDOqTbs0S3Y0iW7HxTYwoZGCDL2WVLefPe2n98YmMuk=; b=IxFGJ3LqrCl5bt0C2vF/VtW/yDY8ITWzELW/Jno4GLwuLiOsGtudj5NB4fSCH3svcgDptu qeLQESI2b5vA/gBA== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id DEB911336F; Fri, 27 Jan 2023 11:28:17 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id b+feNFG102PBXQAAMHmgww (envelope-from ); Fri, 27 Jan 2023 11:28:17 +0000 Date: Fri, 27 Jan 2023 12:28:16 +0100 From: Jean Delvare To: linux-input@vger.kernel.org, LKML Cc: Daniel Hung-yu Wu , Dmitry Torokhov , Nicolas Ferre , Alexandre Belloni , Claudiu Beznea Subject: [PATCH RESEND] Input: atmel_captouch - drop obsolete dependency on COMPILE_TEST Message-ID: <20230127122816.02b6ea26@endymion.delvare> Organization: SUSE Linux X-Mailer: Claws Mail 4.0.0 (GTK+ 3.24.34; x86_64-suse-linux-gnu) MIME-Version: 1.0 X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1756175021812927244?= X-GMAIL-MSGID: =?utf-8?q?1756175021812927244?= Since commit 0166dc11be91 ("of: make CONFIG_OF user selectable"), it is possible to test-build any driver which depends on OF on any architecture by explicitly selecting OF. Therefore depending on COMPILE_TEST as an alternative is no longer needed. As a nice side effect, dropping the alternative dependency on COMPILE_TEST allows removing preprocessor directives, which will speed up the build. Signed-off-by: Jean Delvare Cc: Daniel Hung-yu Wu Cc: Dmitry Torokhov --- drivers/input/misc/Kconfig | 2 +- drivers/input/misc/atmel_captouch.c | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) --- linux-6.1.orig/drivers/input/misc/Kconfig +++ linux-6.1/drivers/input/misc/Kconfig @@ -107,7 +107,7 @@ config INPUT_ATC260X_ONKEY config INPUT_ATMEL_CAPTOUCH tristate "Atmel Capacitive Touch Button Driver" - depends on OF || COMPILE_TEST + depends on OF depends on I2C help Say Y here if an Atmel Capacitive Touch Button device which --- linux-6.1.orig/drivers/input/misc/atmel_captouch.c +++ linux-6.1/drivers/input/misc/atmel_captouch.c @@ -249,7 +249,6 @@ static int atmel_captouch_probe(struct i return 0; } -#ifdef CONFIG_OF static const struct of_device_id atmel_captouch_of_id[] = { { .compatible = "atmel,captouch", @@ -257,7 +256,6 @@ static const struct of_device_id atmel_c { /* sentinel */ } }; MODULE_DEVICE_TABLE(of, atmel_captouch_of_id); -#endif static const struct i2c_device_id atmel_captouch_id[] = { { "atmel_captouch", 0 }, @@ -270,7 +268,7 @@ static struct i2c_driver atmel_captouch_ .id_table = atmel_captouch_id, .driver = { .name = "atmel_captouch", - .of_match_table = of_match_ptr(atmel_captouch_of_id), + .of_match_table = atmel_captouch_of_id, }, }; module_i2c_driver(atmel_captouch_driver);