Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751419Ab2KPINN (ORCPT ); Fri, 16 Nov 2012 03:13:13 -0500 Received: from mga01.intel.com ([192.55.52.88]:33453 "EHLO mga01.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750817Ab2KPINM (ORCPT ); Fri, 16 Nov 2012 03:13:12 -0500 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.83,262,1352102400"; d="scan'208";a="248101405" Date: Fri, 16 Nov 2012 10:12:46 +0200 From: Mika Westerberg To: "Rafael J. Wysocki" Cc: linux-kernel@vger.kernel.org, lenb@kernel.org, rafael.j.wysocki@intel.com, broonie@opensource.wolfsonmicro.com, grant.likely@secretlab.ca, linus.walleij@linaro.org, khali@linux-fr.org, ben-linux@fluff.org, w.sang@pengutronix.de, bhelgaas@google.com, mathias.nyman@linux.intel.com, linux-acpi@vger.kernel.org Subject: Re: [PATCH v2 1/3] gpio / ACPI: add ACPI support Message-ID: <20121116081246.GP17774@intel.com> References: <1352977397-2280-1-git-send-email-mika.westerberg@linux.intel.com> <1352977397-2280-2-git-send-email-mika.westerberg@linux.intel.com> <3699628.UkRaSOtjaA@vostro.rjw.lan> <20121116065448.GN17774@intel.com> <20121116080549.GO17774@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20121116080549.GO17774@intel.com> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 778 Lines: 18 On Fri, Nov 16, 2012 at 10:05:49AM +0200, Mika Westerberg wrote: > > One more thing, sometimes we want to assign the handle like in the case of > SPI controller driver we set the master->dev.acpi_handle. In that case we > can't use DEVICE_ACPI_HANDLE() as is. Should we just do something like: > > master->dev.acpi_handle = pdev->dev.acpi_handle; > > or should we introduce some new macro that supports this? Or we could just drop the cast from the macro and use the same. #define DEVICE_ACPI_HANDLE(dev) ((dev)->acpi_handle) -- 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/