Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp3033604rwb; Mon, 3 Oct 2022 08:48:00 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6183mGo8eDZjIY4vyGMasIUyoVlQ3GzopFL7uGCPF0NjCnbmmePnR3LIJJLcBsAlmzenkU X-Received: by 2002:a17:903:2410:b0:17a:b32:dbec with SMTP id e16-20020a170903241000b0017a0b32dbecmr22522429plo.163.1664812080343; Mon, 03 Oct 2022 08:48:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664812080; cv=none; d=google.com; s=arc-20160816; b=emPLd8SmQNnx6AvlAUsylGsVMG5ZPQi2RKxFknSaCzSAaWnrn9G3mWuV+iLMbLlb6R Cgee7u5eY0EoIq24+rKJZjY4Iw837BKeFFfpINCuJZQSEeGnRcHRsYa1sySpEV1IhzrK NrxF9yf6pVwW8Y/y/veP+a26RU8yQbQ+v0pS1k00GkMzc0icb188sonawTSXWaqUDhxb guoJCAujTFbj4s0dL4WmlUtrxpL2VMjtbfM7KOTEPYpb7lfievrOr1S3McImit67v0L+ 5DPLUD8cvF8jTsP1pq6IXTjLt9jI+L12j9rJeoQdW1rCODhLeoyY6AbvYrSCWTHjBike ERXQ== 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=Ox4ltjMjfoXYKHNGFlInSfH4y3XOXpGSwEj9RpfYwYs=; b=n+i+s5ElOczLUu35qS99aiLEEHxNyi7JHfc1owvY/GKd2B2JDr8VGnRT0xFh9Z73jb 1v4bndxe6niXoaJfsRlV/BRQj7vchgRWMVyoZqPLkJut2WJ/W10z8fXWP/KLAD3TgFf7 MFZ/BU1NL6GdrujHCnwyhRfl549csCpDCEgfzDsl6QUSEpltdiAuW+fVpI38uWanF6xY GNSjJ5yVkp0T90Hg0k2d/CJTZuRqeGIYL46slKdmHMkumTW4wusCuBveBc84RtF7lEFT 9s+Z8xCEX3nmkLGW3vXxP1sTHBtCA4osAdrGpCZEZEigqug1v7apRGf/H9HlwGK/CyHB STBA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=mgK6MXAy; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519 header.b="2NZ2/9eX"; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id r1-20020a170902be0100b0017dcda20fefsi5847363pls.232.2022.10.03.08.47.49; Mon, 03 Oct 2022 08:48:00 -0700 (PDT) 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=mgK6MXAy; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519 header.b="2NZ2/9eX"; 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 S229848AbiJCPaM (ORCPT + 99 others); Mon, 3 Oct 2022 11:30:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55938 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230192AbiJCPaA (ORCPT ); Mon, 3 Oct 2022 11:30:00 -0400 Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.220.28]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4D06112AB1; Mon, 3 Oct 2022 08:29:57 -0700 (PDT) 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-out1.suse.de (Postfix) with ESMTPS id C04B12187A; Mon, 3 Oct 2022 15:29:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1664810995; 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=Ox4ltjMjfoXYKHNGFlInSfH4y3XOXpGSwEj9RpfYwYs=; b=mgK6MXAy/k6wFGXadHPtSB+wzXevm7/vexrn3H+Lo7bwRZayH6CM3fBiWJyKfSUBE/8THl jqgRMrmRWAJutopgy8p9d30FQ6TDZwkgU1dJNLLmaOrkLi7fe66/pI9Om3+eoi+VqRgwLT I2WOAT3ML2n70l70mMZE18+hiS1EYuQ= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1664810995; 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=Ox4ltjMjfoXYKHNGFlInSfH4y3XOXpGSwEj9RpfYwYs=; b=2NZ2/9eX1UNGVm7/oj+qv6Z0AHUG9aRzBAI6EcnXs4tdoEcUM6EdRd7/nW13YLWgdyTfIu y4OC6LFF2LS4nAAw== 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 959141332F; Mon, 3 Oct 2022 15:29:55 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id G/L8IvP/OmOdfgAAMHmgww (envelope-from ); Mon, 03 Oct 2022 15:29:55 +0000 Date: Mon, 3 Oct 2022 17:29:53 +0200 From: Jean Delvare To: Dmitry Torokhov Cc: Daniel Hung-yu Wu , linux-input@vger.kernel.org, LKML Subject: [PATCH] Input: misc - atmel_captouch does not depend on OF Message-ID: <20221003172953.30354439@endymion.delvare> Organization: SUSE Linux X-Mailer: Claws Mail 3.18.0 (GTK+ 2.24.32; x86_64-suse-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit 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 The atmel_captouch driver does not actually depend on OF, it includes a non-OF device ID which could be used to instantiate the device, and the driver code is already prepared to be built with or without OF. So drop the unneeded dependency. Signed-off-by: Jean Delvare Cc: Daniel Hung-yu Wu Cc: Dmitry Torokhov --- The problem I'm trying to solve here is that "depends on OF || COMPILE_TEST" does not make sense since OF can now be enabled on all architectures. One way to fix this is by removing the dependency altogether (this patch). If the driver is known to be needed only on OF-enabled systems then we could leave the dependency on OF and only drop COMPILE_TEST (and simplify the driver code accordingly). I have an alternative patch doing that already. Tell me what you prefer, I'm fine either way. drivers/input/misc/Kconfig | 1 - 1 file changed, 1 deletion(-) --- linux-5.19.orig/drivers/input/misc/Kconfig +++ linux-5.19/drivers/input/misc/Kconfig @@ -107,7 +107,6 @@ config INPUT_ATC260X_ONKEY config INPUT_ATMEL_CAPTOUCH tristate "Atmel Capacitive Touch Button Driver" - depends on OF || COMPILE_TEST depends on I2C help Say Y here if an Atmel Capacitive Touch Button device which -- Jean Delvare SUSE L3 Support