From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from trinity.fluff.org ([89.16.178.74]:45443 "EHLO trinity.fluff.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752332Ab0AKIaD (ORCPT ); Mon, 11 Jan 2010 03:30:03 -0500 Date: Mon, 11 Jan 2010 08:30:02 +0000 From: Ben Dooks Subject: Kconfig with multiple sources of integer value Message-ID: <20100111083002.GA24987@trinity.fluff.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Sender: linux-kbuild-owner@vger.kernel.org List-ID: To: linux-kernel@vger.kernel.org, linux-kbuild@vger.kernel.org I have a situation (and possibly some more) where having the ability for multiple options to affect an integer value, in this case ensuring a minimum value. currently we have the following: config S3C24XX_GPIO_EXTRA int default 128 if S3C24XX_GPIO_EXTRA128 default 64 if S3C24XX_GPIO_EXTRA64 default 0 and various machines select S3C24XX_GPIO_EXTRA64 or S3C24XX_GPIO_EXTR128 such as: config MACH_OSIRIS ... select S3C24XX_GPIO_EXTRA128 It would be nice if I could say config S3C24XX_GPIO_EXTRA and then config MACH_OSIRIS ... set_min S3C24XX_GPIO_EXTRA 128 or something similar. -- Ben Q: What's a light-year? A: One-third less calories than a regular year.