Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp3746507rwb; Mon, 3 Oct 2022 21:37:16 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7/s+3V/619pBdSkWYADrfZDRPEurnz00Sd5oXgK9rRDVuzEJcbtyvNECxjlFf8QeEBUjzg X-Received: by 2002:a17:907:9812:b0:781:bbff:1d20 with SMTP id ji18-20020a170907981200b00781bbff1d20mr17725346ejc.33.1664858235858; Mon, 03 Oct 2022 21:37:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664858235; cv=none; d=google.com; s=arc-20160816; b=QWTh5AJor/vA3dd2rU1YfO38bJu+NdmE62wQGlJnsOYman8EzWpofmtwBnKlQ3PxAI wMGgVA4UpKBsArj66qOWOIoAPCnepnj+Q30a7Kv1DucoR3TV+rLupH8/bTC4HAst8XKp abTEdjGgCy8qEVyJetYBPnbAhOz+Er0OuGdeTtfqipaZYrRCOpKStj9oV9Di2nyN6Bp0 bgH42FNX2rMohKPX9jy1sQGhVNGeWMjUnT5A5zzoAuuyrv0asek12guY9wG2DRF5KLc1 IeZPWI/rZZuEzBWpp4nKBOeJQoWzl2mlPUbnhK8pevloTy6Y6lFrFuOIBYyK9yJzs4L/ dIHg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=t68JD1LRSTUwiOm802DHOi8HVYbNo1SEL5P3KG0KYLk=; b=mSprdYZWaz5CL+0EurfzSzZ86Q20eT6Aa9O6pAnFNVbcrm6nNwQODwj7M7MUVPNhBA z92IoDuPcVGl2sssONuks1nJVGRDrqmr9yg0BVPKweDtBXdV3FWuDMzAB1q/Sx4ff4iK 403NXN1rZ0RDv2AeUMq0b4kosynMVPs+JKvUSCs6J2K2q1v0tLiasZZsKVsQaNwK1Ean +/LZhwsaxLvy2xGDthcBgi4pr4r9rdip84U+kAk5NAh+GFGAlsXKMnqKtRuPW54XUkwv GTEq2kDXIXsdWhtY7dxkEUOEMSKjbakndZg9IS9D/Es+wL88rAPZYLwqwe/bxOi4GzuD jdqg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=AWMtfH+J; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s13-20020a056402520d00b00450c8cd976esi10555189edd.224.2022.10.03.21.36.48; Mon, 03 Oct 2022 21:37:15 -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=@gmail.com header.s=20210112 header.b=AWMtfH+J; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229629AbiJDDy6 (ORCPT + 99 others); Mon, 3 Oct 2022 23:54:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53834 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229530AbiJDDyy (ORCPT ); Mon, 3 Oct 2022 23:54:54 -0400 Received: from mail-pl1-x62f.google.com (mail-pl1-x62f.google.com [IPv6:2607:f8b0:4864:20::62f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6365AA45E; Mon, 3 Oct 2022 20:54:52 -0700 (PDT) Received: by mail-pl1-x62f.google.com with SMTP id b2so6714476plc.7; Mon, 03 Oct 2022 20:54:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date; bh=t68JD1LRSTUwiOm802DHOi8HVYbNo1SEL5P3KG0KYLk=; b=AWMtfH+JoFgOUei7K3blEpTgsCrHAxADwH6DiHlEkzfPtf6nrbCHPuPejKofUK8GcU kiTkQ90VY+CG0eWUgmMmeq4qzb5l9fz9BFCeuAUw8YMfARYjA6w08ZdFTBvf1Q8auMBo kIci3Z3F0wN7fUABgSCUkYgUPyAfRup4ZekG5HYrjzVbwoxMdTYHAGELdQHG2UJ1YVcN qMBYNs4v7KF5uFsjZsDC0seBmGYnZ9DrroaEgxO0S7QsfFpKXRrXMScADwli9HdxHSm5 B49JIOtoO/sry8JweWP9eSfdcqcozm4Mzfh+LOglX7ODY3GviyzgcfnoMc/IHUqAWwvt 6sbA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date; bh=t68JD1LRSTUwiOm802DHOi8HVYbNo1SEL5P3KG0KYLk=; b=BUWcxG3r8kVZ9cVP92UZ9F0lMww3d0eJ7rwS5FlIzzi9nTMUhCHkkTYzLBYR3AtvKC PO6xGTHn+gec8y7RTQFjzBIatF10/QeXGcIqRebfCFGPM/lOUX89Yi6a9aFU9WFgTEHZ jrrygu3ekNYJDMstGgFrzXEjdZxoHYQdJMUPEQjNRtg6UCQA6QsBnpA/18uU/EDoUloZ 08dUmtx2GS/DG/quOHkUG1H5KDeJ84pXrETJcV8Ml5WrP+2eyVb5LRmWJNNOHCzWou9x IQXi0YgdRCyYBW/5h9e1Wfs0bjo7iWeBDbClJTKf3vw8XWjGVw8HjNtEp1vvKOB53TsO RNFg== X-Gm-Message-State: ACrzQf1Y9WfJlbPNkrVSAjdc7WFuC9f+Va6px0R14LfVbPRDIVfT+dRQ tc7FFd4jJh6RXEpevC4YDIk= X-Received: by 2002:a17:90a:4588:b0:205:d605:8bcc with SMTP id v8-20020a17090a458800b00205d6058bccmr15620463pjg.205.1664855691737; Mon, 03 Oct 2022 20:54:51 -0700 (PDT) Received: from google.com ([2620:15c:9d:2:85c4:e70d:dcc0:91e1]) by smtp.gmail.com with ESMTPSA id r1-20020a17090a4dc100b001efa9e83927sm10766208pjl.51.2022.10.03.20.54.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 03 Oct 2022 20:54:50 -0700 (PDT) Date: Mon, 3 Oct 2022 20:54:48 -0700 From: Dmitry Torokhov To: Jean Delvare Cc: Daniel Hung-yu Wu , linux-input@vger.kernel.org, LKML Subject: Re: [PATCH] Input: misc - atmel_captouch does not depend on OF Message-ID: References: <20221003172953.30354439@endymion.delvare> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20221003172953.30354439@endymion.delvare> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,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 Hi Jean, On Mon, Oct 03, 2022 at 05:29:53PM +0200, Jean Delvare wrote: > 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. The driver is not operable on systems without OF: static int atmel_captouch_probe(... ... node = dev->of_node; if (!node) { dev_err(dev, "failed to find matching node in device tree\n"); return -EINVAL; } if (of_property_read_bool(node, "autorepeat")) So the reason for "depends on OF || COMPILE_TEST" is to avoid prompting users who actually try to configure real systems for drivers that make no sense for them while still allowing people interested in compile coverage to select COMPILE_TEST and enable more drivers. Thanks. -- Dmitry