From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755560Ab2LLWV6 (ORCPT ); Wed, 12 Dec 2012 17:21:58 -0500 Received: from hydra.sisk.pl ([212.160.235.94]:59037 "EHLO hydra.sisk.pl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754245Ab2LLWV5 (ORCPT ); Wed, 12 Dec 2012 17:21:57 -0500 From: "Rafael J. Wysocki" To: Linus Walleij , Jean-Christophe PLAGNIOL-VILLARD Cc: Greg Kroah-Hartman , Linus Walleij , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Felipe Balbi , Benoit Cousson , Dmitry Torokhov , Thomas Petazzoni , Mitch Bradley , Mark Brown , Ulf Hansson , Rickard Andersson , Russell King Subject: Re: [PATCH] drivers/pinctrl: grab default handles from device core Date: Wed, 12 Dec 2012 23:26:59 +0100 Message-ID: <10768446.F2JLuVrZNU@vostro.rjw.lan> User-Agent: KMail/4.9.3 (Linux/3.7.0; KDE/4.9.3; x86_64; ; ) In-Reply-To: References: <1355233246-16694-1-git-send-email-linus.walleij@stericsson.com> <20121211181336.GD25714@kroah.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="utf-8" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wednesday, December 12, 2012 08:56:41 PM Linus Walleij wrote: > On Tue, Dec 11, 2012 at 7:13 PM, Greg Kroah-Hartman > wrote: > > On Tue, Dec 11, 2012 at 02:40:46PM +0100, Linus Walleij wrote: > >> diff --git a/include/linux/device.h b/include/linux/device.h > > >> +#ifdef CONFIG_PINCTRL > >> + struct dev_pin_info pins; > >> +#endif > > > > Can't you just make this a * to the structure, saving a bit of space for > > those that don't use this structure? Ok, it's only saving one pointer, > > so it's really not a big deal to me if you don't want to do this, just > > asking... > > OK I'll look into it. I wonder if you could use a struct that will be empty if CONFIG_PINCTRL is unset instead of using #ifdef around the field like this? [Kind of along the lines of what I did for ACPI.] Rafael -- I speak only for myself. Rafael J. Wysocki, Intel Open Source Technology Center.