Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1761243AbZGIOot (ORCPT ); Thu, 9 Jul 2009 10:44:49 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1761251AbZGIOof (ORCPT ); Thu, 9 Jul 2009 10:44:35 -0400 Received: from opensource.wolfsonmicro.com ([80.75.67.52]:45756 "EHLO opensource2.wolfsonmicro.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1761182AbZGIOoe (ORCPT ); Thu, 9 Jul 2009 10:44:34 -0400 From: Mark Brown To: Liam Girdwood Cc: Haojian Zhuang , linux-kernel@vger.kernel.org, Mark Brown Subject: [PATCH] regulator: Define full constraints function with REGULATOR disabled Date: Thu, 9 Jul 2009 15:44:31 +0100 Message-Id: <1247150671-23365-1-git-send-email-broonie@opensource.wolfsonmicro.com> X-Mailer: git-send-email 1.6.3.3 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1056 Lines: 34 This allows machine drivers to build without ifdefs if they have full constraints. Suggested by machine drivers contributed by Haojian Zhuang . Signed-off-by: Mark Brown --- include/linux/regulator/machine.h | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/include/linux/regulator/machine.h b/include/linux/regulator/machine.h index 9328090..73a88f6 100644 --- a/include/linux/regulator/machine.h +++ b/include/linux/regulator/machine.h @@ -171,6 +171,12 @@ struct regulator_init_data { int regulator_suspend_prepare(suspend_state_t state); +#ifdef CONFIG_REGULATOR void regulator_has_full_constraints(void); +#else +static inline void regulator_has_full_constraints(void) +{ +} +#endif #endif -- 1.6.3.3 -- 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/