Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp3856838pxu; Wed, 9 Dec 2020 02:18:29 -0800 (PST) X-Google-Smtp-Source: ABdhPJxolDcMFLRD2pau6F481WyTgmjL2XAX4sHiwQiNQa+9J1Bryr4WG9F9nnerkqV2syaDn2U3 X-Received: by 2002:a17:906:4881:: with SMTP id v1mr1365693ejq.465.1607509109189; Wed, 09 Dec 2020 02:18:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607509109; cv=none; d=google.com; s=arc-20160816; b=gubuD+a3FniULKJK9obxNJw1kuWvitYgDyrGvGkI6ScUQ4Xil7OyEyrQ1dr4oEEte/ JuHWtNc9C92K4E8u09pLZyOAtyCWxx6Z5rJJ+LT0HUvmRt76YS+awivwQFE2XJi8jA6E C/P3ayDYDCUxQPxujoZRmRcgE9TVbVTDYy86wxOcoKavScjcbuTRNqEHhdwwo5Nl9WPe oxEhWBkzK4LOnaij7JJxRxWASupYW4lZXdIG8cceE68LSNXTK2lC+6o7slgkTrC4ZRBd rsMSs70fdPPPsDzcN3MYAr8YCP0OiCUWAW3I7VCJvfA7+HbKeYnstCwYUda0pYqXLAmo b2eg== 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=8rjD7IseveSeNkH6VF4Nm3t/LEPLDkcL2AIVZGOLwaQ=; b=tBtn+duORJkNxi4sk/2SLPhuuBxpN01+YXHEdsJR3s55sp9Ma80Pc1A2V1xThv4bP7 3VDwywJ4VNPEUGDXUVZTBVmWsjWsl9nqDRv/YkMB5TYrjS8w6o0M+XhvT+Gubcdj8aFm 82iPdzZYjPJePlVKE4sgtC8gUw1rmAzei5lOFjJsROklCYDcE+BI+tYlUqLrzo2z9Zr4 XttuZrlJ0yqiJuaUjx2UX2D5IIe5N3/g1CXpdGaaIusGn7CedmCFPyVjfKy0YWlRwKOX I56i92PccdG9ArDY6sM8/+m3dtXjScXdz2rsf5PjmISJaoiK1O4zB9IGZAWb5eKkQTOI m1BA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@0x0f.com header.s=google header.b=bYuZo14I; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id zc17si484792ejb.579.2020.12.09.02.17.59; Wed, 09 Dec 2020 02:18:29 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@0x0f.com header.s=google header.b=bYuZo14I; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729806AbgLIKOu (ORCPT + 99 others); Wed, 9 Dec 2020 05:14:50 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53594 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729178AbgLIKOt (ORCPT ); Wed, 9 Dec 2020 05:14:49 -0500 Received: from mail-qk1-x742.google.com (mail-qk1-x742.google.com [IPv6:2607:f8b0:4864:20::742]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2F6F9C0617A7 for ; Wed, 9 Dec 2020 02:14:07 -0800 (PST) Received: by mail-qk1-x742.google.com with SMTP id z11so692151qkj.7 for ; Wed, 09 Dec 2020 02:14:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=0x0f.com; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=8rjD7IseveSeNkH6VF4Nm3t/LEPLDkcL2AIVZGOLwaQ=; b=bYuZo14ICpkzNIN2VbO0nSMeZMGOGObypWmZnDScE4IKQfy4mYHoZcgftoPAN+UE1A 8yEkNLgXB4AFkEeX8yrTLyy7c9I9fsZRmybhtJsMPtb1Gm1sEMn9vITJP8Ht5hW03BcV CTzKi9lp5VbX1ngvVito4r3LNXJ6laM1+JGNM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=8rjD7IseveSeNkH6VF4Nm3t/LEPLDkcL2AIVZGOLwaQ=; b=EBcXNNyaBms7sAXF6S2rKDqrTcb6mi2Aj5Ou982zrvRVgWz/ywncg4pOGELDKZB6Jj 5yCcuhNwfncML+oNAwJzeub/egiqnQNoM5bziqg1E8/0ztIPlJNovwKkcM1dLCaarHay HJ30vjmnwg7D+1bwvUIjsgrnw0EkFR9bntYLCdvIkSBNdCxlfkBtVqfWswnxq0+SK85r QwIcSv2cNdB35BtWloG8+NdqRxH6l6ooo/uue4o3XNjv2mbq8b6G1LZC6bmFh5DAuS1G YT4QrOAYNhR9Cru3952QR1z8RAdhXA0FsLkEu5CFhFS9jfKqiM/NGr+yC+eO7DgxGspI htjQ== X-Gm-Message-State: AOAM531B8CQVaDHdWSHNxuEJUPSg+KKlWMYXrqnfnS+wAaKU1Oc6Ol/Y tG8nwhv++P6poA5KNyZ7nBRMWsCthmTHCI/2V6J9Kw== X-Received: by 2002:a37:7c07:: with SMTP id x7mr2165263qkc.159.1607508846374; Wed, 09 Dec 2020 02:14:06 -0800 (PST) MIME-Version: 1.0 References: <20201208164821.2686082-1-paul@crapouillou.net> <20201208164821.2686082-2-paul@crapouillou.net> In-Reply-To: <20201208164821.2686082-2-paul@crapouillou.net> From: Daniel Palmer Date: Wed, 9 Dec 2020 19:13:55 +0900 Message-ID: Subject: Re: [PATCH 2/2] pinctrl: ingenic: Only support SoCs enabled in config To: Paul Cercueil Cc: Linus Walleij , Arnd Bergmann , od@zcrc.me, linux-arm-kernel , linux-mips@vger.kernel.org, Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Paul and others, Sorry to hijack this but I actually want to do something similar to this in some other drivers. The targets I'm working with have only 64MB of ram so I want to remove code wherever possible. Is there any reason to do it like this instead of wrapping the whole unneeded of_device_id struct in an #ifdef? For example there is a rule that the compatible strings have to be present even if the driver isn't usable or something? Thanks, Daniel