Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp494528rwe; Fri, 26 Aug 2022 08:42:39 -0700 (PDT) X-Google-Smtp-Source: AA6agR42ce1ydNvKZD53WvPE/rPhyeGIR4o92I5EF5McNk0rUSI1MFLKe2ej87aLr1IMg8x9vXxY X-Received: by 2002:a17:907:2cc1:b0:73d:c2d9:3232 with SMTP id hg1-20020a1709072cc100b0073dc2d93232mr5991444ejc.763.1661528559191; Fri, 26 Aug 2022 08:42:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661528559; cv=none; d=google.com; s=arc-20160816; b=bOhx2r4n66kGKjr/QZy/00Q8i9/vbfRXy0+ZrvmvzO77T1CYWeT7oMgu1BUMH8jK7m n82in3pr6PGDcRYTc8dscuMogq7d0PFkJ5eAGUB4w2HtgqxkTJuAOGDn02vj2HU8GT1m xT7m2bD+kfNuGEdNDeKe0W28RP9uEDhc050GlN+2N+fQe5KlagPj2GV+CqbgGMt07uyE gZRriE23Uk/MO/NIaTJodGj6DtqdMogs//p8VReaIgpZUT9xQWe18u0rtM+gD4jNuVP7 XWWuM34UYfqii03EPx5FUIIHyZA6NSbQYgkCBRkBrqG6c0OLsFZJwtArFhKVhqS1F9g4 bX2g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=ir9pClhHiSh9+thFreEL1bpBTTHeDK2kTUYhvRZSn1I=; b=NPPyZefvQBYzblnfbUB5kjDSLJWGiD/vwNyV9DHBIvREP4Gy3spghNt6sbtd2ERMcL DnvoMTmEbr2Dk2QpGS766nVhO7NKQsvJyi4aDWe6pxOFc8waItUe9PhrhvEKGJlB8DVJ Hsg4yARGCFCDnlfkYidgMfnXEER5yvJijsB4/rFNw6OFGHGLtu7TCOI540+fpjfeSrui wq3RsGMwtiqyTeUIzHXDwGQwkb7W1CA2RbCPz1dKC+pVpb4c5pMUTgVbR6RKH2yfUiyx I9RR+a2hibXZdCp0184hkEOUDcT1fyqPthOsuUGpNPJw6XWsd97TB6h1+l6eLcXSsJ4w /HGw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=YIvMvlko; 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 bq22-20020a056402215600b0043bbd1cac73si1371532edb.320.2022.08.26.08.42.13; Fri, 26 Aug 2022 08:42:39 -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=YIvMvlko; 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 S1344493AbiHZPYj (ORCPT + 99 others); Fri, 26 Aug 2022 11:24:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59690 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240660AbiHZPYI (ORCPT ); Fri, 26 Aug 2022 11:24:08 -0400 Received: from mail-qt1-x82a.google.com (mail-qt1-x82a.google.com [IPv6:2607:f8b0:4864:20::82a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1D857DCFF8; Fri, 26 Aug 2022 08:18:57 -0700 (PDT) Received: by mail-qt1-x82a.google.com with SMTP id x5so1455653qtv.9; Fri, 26 Aug 2022 08:18:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc; bh=ir9pClhHiSh9+thFreEL1bpBTTHeDK2kTUYhvRZSn1I=; b=YIvMvlkoqy6Ddjk4k+h0nO4nYRRCIovSaDWQ2Go+InBBpKqzYWhelaRUMWf11OXU+3 dBrCHpKSYeBMVA1eSkuNOqD460NLrqYexVXA30kGDVWYMB+Mhw+K6NaXacfyaKbP+ode eVYs+YUfuS3sFPczAVaGJi/L3PixT7SE7n10apMiTQe3qzxfa6J+gINjmxqHu4A/6rxx umrLaDPoe0nDBmLCSHpjp1A3nrrJwtsYmqk7WVio6HUFMnAmDyVXGGz/yRGO6Vg9oAQX N9+fnWaz5YXUmy8UGxkg/Yltw4RYlz2qfypQbqZlck2+3lKg4UWA5BOAV+lr35AOZix4 MsmA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc; bh=ir9pClhHiSh9+thFreEL1bpBTTHeDK2kTUYhvRZSn1I=; b=Vjo3RY7fv4jS6uE6qW1Zqr4jZAVEoauj1Pr6mpaOYXPld6GvTklK70idiILaV28VOf KNofYLRVvMYWxhy03DOxBaEHtmlgJuzs2NPaA3UE+A9/qGeGh5blY44CIpaYzcK44j6h jemzQ9DlgrwQMn0V4rdLyR18YIQDw8AWfyK/jpVM8VuAUVDBtpG1yK6HWasZTzkOaU00 9UI9R8C6EY2asi3uW933meU3rulp1feXetMseEJBZmkUxJVeqENVgiato6MMKym8CnAr +GIasHZ+J4Oun5yyMHvL9i2POv4YXptVxZp8K2OMEcZl9/cZ2usGZ3bUfdP8JktbDfzR 0Hwg== X-Gm-Message-State: ACgBeo1oVo84zsKu1nowF3susGL8+e7p5FmWHNXeTXbtP41i5jDy8kcs H1w/jb7auIieeLYcyeoCPmnbPL4F5qcYCokV45U= X-Received: by 2002:a05:622a:491:b0:344:95bf:8f05 with SMTP id p17-20020a05622a049100b0034495bf8f05mr156849qtx.61.1661527136190; Fri, 26 Aug 2022 08:18:56 -0700 (PDT) MIME-Version: 1.0 References: <20220825144012.24a33bb0@endymion.delvare> <20220826124603.4a28a154@endymion.delvare> In-Reply-To: <20220826124603.4a28a154@endymion.delvare> From: Andy Shevchenko Date: Fri, 26 Aug 2022 18:18:20 +0300 Message-ID: Subject: Re: [PATCH] iio:accel:dmard06: Optimize when CONFIG_OF isn't set To: Jean Delvare Cc: linux-iio , LKML , Jonathan Cameron , Lars-Peter Clausen Content-Type: text/plain; charset="UTF-8" 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,T_SCC_BODY_TEXT_LINE 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 On Fri, Aug 26, 2022 at 1:46 PM Jean Delvare wrote: > On Thu, 25 Aug 2022 23:12:43 +0300, Andy Shevchenko wrote: > > On Thu, Aug 25, 2022 at 3:54 PM Jean Delvare wrote: ... > Now I'm curious, is there a well-defined subset of device names that > can be found in an ACPI table? If not, does that mean that any driver > with an OF entry could match, Yes, anything can be matched by ACPI with any of the compatible strings. > therefore of_match_ptr() should be > removed from the kernel entirely? In most cases yes, like for discrete components that can be connected to any SoC on ACPI/DT/whatever platform. But for some cases it still makes sense: platform is known to never be non-OF, component is known to be used only on such platforms, etc. -- With Best Regards, Andy Shevchenko