Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754987AbaBKUGM (ORCPT ); Tue, 11 Feb 2014 15:06:12 -0500 Received: from moutng.kundenserver.de ([212.227.126.187]:53603 "EHLO moutng.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753983AbaBKUGJ (ORCPT ); Tue, 11 Feb 2014 15:06:09 -0500 From: Arnd Bergmann To: Geert Uytterhoeven Cc: Josh Cartwright , Laurent Pinchart , "linux-kernel@vger.kernel.org" , "devicetree@vger.kernel.org" , Grant Likely , Rob Herring Subject: Re: [PATCH] of: Turn of_match_node into a static inline when CONFIG_OF isn't set Date: Tue, 11 Feb 2014 21:06 +0100 Message-ID: <3619654.tQqiI1EfTB@wuerfel> User-Agent: KMail/4.11.3 (Linux/3.11.0-15-generic; KDE/4.11.3; x86_64; ; ) In-Reply-To: References: <1392122211-11422-1-git-send-email-laurent.pinchart@ideasonboard.com> <20140211180845.GG841@joshc.qualcomm.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Provags-ID: V02:K0:4k+WpWIX5BaqeazRpijIu9C9CbuQfiiGqDRLR56AxYq xJd/ki7YiTElQzoG+taqUeyBY/bQtWj76JFNb4FGxWELwiYxfj naAIsvhSfXv8vf1TCMexnoGh021aDiebymibyNaT+0GOvcWfZ0 o6grFKHbeRNCs3hCgMlGdAw2SRSSpYPxdNOOnFrseJvD13Anui WmlKHSgZdFvw+8XpEY1hvzAdLR2LOrbRqRssRHVoRviW0t1H2u bUB8nGQ2ru2HWrM6jPuYoEMz5IJ5zXXXpmrAYV4D0NVNZkSDTZ jDXxp6fI3IaNev/nMZTG5mnfm2BTNJx9lHv1onhGNrXD/citQl ow5E7ez5CV69VjcLeM2Y= Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tuesday 11 February 2014 19:29:19 Geert Uytterhoeven wrote: > On Tue, Feb 11, 2014 at 7:08 PM, Josh Cartwright wrote: > Ideally, all xxx_device_id look like > > struct xxx_device_id { > ... /* bus-specific ID information */ > kernel_ulong_t driver_data; > }; > > This may be formalized in some way, using a base class, but thay may > require reordering the fields, like: > > struct base_device_id { > kernel_ulong_t driver_data; > long id[0]; > }; > You can't reorder the fields because they are shared with user space in form of the module-init-tools. Arnd -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/