Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp560664rwe; Fri, 26 Aug 2022 09:51:31 -0700 (PDT) X-Google-Smtp-Source: AA6agR50WG8NeFvuLxemwSmAANlaO6cKeNip6FysoeHH7hGRHCGLzlIs2ZrKkUS/QN7Ye9Nq6XuQ X-Received: by 2002:a17:90b:3ec7:b0:1fa:cdc1:f66 with SMTP id rm7-20020a17090b3ec700b001facdc10f66mr5373434pjb.167.1661532691025; Fri, 26 Aug 2022 09:51:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661532691; cv=none; d=google.com; s=arc-20160816; b=ErIqQ9EB2ZZS6VBstJiflR394e3RyaTRdqUtbVJUwRWdhUfMbmlYON+gVAT44AW4H/ E1T5GNewCR0eQ66lyXwF+dLXDAqowkixrxxw+c4bmRac+sEDMNSrxIZHDSSPe95BL45Q 4YcDdtMwrdL2X1q4nXmIYGxZXQnQQvmlOZwgHiYD9z+WQJCo6ExyJjBEEpk8FpTaswYO S6ZE+aryCNoEqrzebcEI9D99hZgUkV6sE1GxeDE80BwMiJJ5Fzemxptsgye29dj2SCvZ dMpB6KPT0ZqA3IMPYsLJY+ge8UQh+8ZvdncfAC1ajqTpVwgJ1zJ2rvYUndbPPtlsReK1 6Bkg== 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=hUZ/i8qZ4uBMnmjSLX55Poh2FuPd4rO6x4KjLMimiTU=; b=lf3Q8ZpVvlaxZC7rO3bXH2Smjmg1TlJS568vHIc6+tKfFg/0uxB/na35ZvkSP/gexr kg/TL/klzebLdfmSZM8EdTGKohHHFSQGdPMCtxiHKSbfJllYy9BHup8biaLo/dn/nLr1 fWBT8B/Sim7Y74+CEtK6YfZc06WAZHpoizGrro8CWmiV8HbzTFyPdQ+N7nbKs7lojlgO aucXgNiHuFcGSlXXK61MkXAL0mznZlreHSTvqKaW3sj1/COTlXNh5ORFafi3XuVmVZLg pMUCyRxZxKp33K/cBYP+Obh73H22xrm50PnRKX7V86mEXb7pZQvfMTNnFsfas5aeIbuU n4ng== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=JbTsaEdo; 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 b11-20020a170903228b00b0016da8737de7si2013786plh.534.2022.08.26.09.51.18; Fri, 26 Aug 2022 09:51:31 -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=JbTsaEdo; 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 S237347AbiHZQLR (ORCPT + 99 others); Fri, 26 Aug 2022 12:11:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41052 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229810AbiHZQLP (ORCPT ); Fri, 26 Aug 2022 12:11:15 -0400 Received: from mail-qk1-x72b.google.com (mail-qk1-x72b.google.com [IPv6:2607:f8b0:4864:20::72b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9A4EEAC26E; Fri, 26 Aug 2022 09:11:10 -0700 (PDT) Received: by mail-qk1-x72b.google.com with SMTP id b9so1470142qka.2; Fri, 26 Aug 2022 09:11:10 -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=hUZ/i8qZ4uBMnmjSLX55Poh2FuPd4rO6x4KjLMimiTU=; b=JbTsaEdoOtC7MMTlIebUwBUK0RGInSTlHucQtqu0MavdkPv9YjznVyDsiEguqCgGPZ 4e8tMZNQ/8Q3m8U3CfaKu8d65xNOb/L655Vn084qpG47pAVz3coz1vaPdDTeHa/cV5gp 9cpPqx4WWCi8N+QmicbcsMTEUSCeVDtW1Dkw3r0cauw4LRWDJ2tO6rgXkiNk4QhTWuwu ml30y9DUkXyKP+W+c0yd+fU4Wac9V6GaY46ZOLvdG/thJQ4gSpDDvM5ax7Ytkw9v7O47 TXoCZP99ctTS4oENZeWo19MrtxnNsOgHjrb+sjR2WdgPi5SQ1VJu7PmBJxsQN/w5Kh0N fOdQ== 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=hUZ/i8qZ4uBMnmjSLX55Poh2FuPd4rO6x4KjLMimiTU=; b=L0OjDyElkm4mGpqWS2Vcpm1OzkfCYl+JZMeN69aftRUE1DqwYyLczfCYNN9WK8C6TN uZJ56CEEZnuknI8dLjD7po9Qm/ansG20SqigxIfxk79Zu+p3iJPqGve42UCqpnMKTMYr NIo5Z76E6Kj/yGVdu5RY+gkKAM5V8YYdoI6562xw2VqdEFTHQM/MlJFoKewUkK59A6Gy bMrAFzLD+XUORsbM4F1PU5YgHWeoGarPLj2p25xdUQOh1Y9Xk5R29EjvJQPl3jzkUZg7 /eQjdUEu/fPN/e9zpUaooszmI697Mej/MliGXiNPjIeyWTRJmOmWrHAPxh8VYI97vjjF +E3Q== X-Gm-Message-State: ACgBeo3nqDRM3Ec0diMBlkwFYV203EOrm/EBJd64UDrtN3bHOpK3qQRd 9rsT620dR9fNEX1bUnhSS1j2ivqdWFHmlz6oX7D/RRJeTZk= X-Received: by 2002:ae9:e311:0:b0:6ba:e711:fb27 with SMTP id v17-20020ae9e311000000b006bae711fb27mr339089qkf.320.1661530269675; Fri, 26 Aug 2022 09:11:09 -0700 (PDT) MIME-Version: 1.0 References: <20220825144012.24a33bb0@endymion.delvare> <20220826124603.4a28a154@endymion.delvare> <20220826180609.01262f0a@endymion.delvare> In-Reply-To: <20220826180609.01262f0a@endymion.delvare> From: Andy Shevchenko Date: Fri, 26 Aug 2022 19:10:33 +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 7:06 PM Jean Delvare wrote: > On Fri, 26 Aug 2022 18:18:20 +0300, Andy Shevchenko wrote: > > On Fri, Aug 26, 2022 at 1:46 PM Jean Delvare wrote: > > > therefore of_match_ptr() should be > > > removed from the kernel entirely? > > > > (...) 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. > > Well, I can't see the value of of_match_ptr() in such case either. In > fact I've submitted a couple patches to remove such occurrences lately: > > https://patchwork.kernel.org/project/linux-mediatek/patch/20220730144833.0a0d9825@endymion.delvare/ > https://patchwork.kernel.org/project/linux-pm/patch/20220804135938.7f69f5d9@endymion.delvare/ They are different to what we are discussing here, but yes, in common denominator the of_match_ptr() is useless in almost 100% cases. -- With Best Regards, Andy Shevchenko