[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1430560731.2187.70.camel@x220>
Date: Sat, 02 May 2015 11:58:51 +0200
From: Paul Bolle <pebolle@...cali.nl>
To: Richard Fitzgerald <rf@...nsource.wolfsonmicro.com>
Cc: lee.jones@...aro.org, broonie@...nel.org, linus.walleij@...aro.org,
gnurou@...il.com, cw00.choi@...sung.com, myungjoo.ham@...sung.com,
devicetree@...r.kernel.org, alsa-devel@...a-project.org,
patches@...nsource.wolfsonmicro.com, linux-kernel@...r.kernel.org,
linux-gpio@...r.kernel.org, ckeepax@...nsource.wolfsonmicro.com
Subject: Re: [PATCH v3 3/8] mfd: arizona: Add support for WM8998 and WM1814
Something I didn't notice when v2 came along.
On Fri, 2015-05-01 at 16:15 +0100, Richard Fitzgerald wrote:
> --- a/drivers/mfd/Kconfig
> +++ b/drivers/mfd/Kconfig
> +config MFD_WM8998
> + bool "Wolfson Microelectronics WM8998"
> + depends on MFD_ARIZONA
> + help
> + Support for Wolfson Microelectronics WM8998 low power audio SoC
> +
> config MFD_WM8400
> bool "Wolfson Microelectronics WM8400"
> select MFD_CORE
> --- a/drivers/mfd/Makefile
> +++ b/drivers/mfd/Makefile
> ifneq ($(CONFIG_MFD_WM8997),n)
> obj-$(CONFIG_MFD_ARIZONA) += wm8997-tables.o
> endif
> +ifneq ($(CONFIG_MFD_WM8998),n)
> +obj-$(CONFIG_MFD_ARIZONA) += wm8998-tables.o
> +endif
Playing a bit with the current version of drivers/mfd/Makefile it seems
these
ifneq ($(CONFIG_MFD_WM[...]),n)
tests will always be true. Because, as far as I know, the Kconfig macros
used in those tests will either be "y" or the empty string, but never
"n". (I don't speak Makefilese fluent enough to know how to add simple
debugging prints for the values of the CONFIG_MFD_WM[...] macros to
actually test this, so correct me if I'm wrong here.)
So I think that, effectively, these wm[...]-tables.o objects will always
be built if CONFIG_MFD_ARIZONA is set. Is that the intention? If not,
perhaps these test should read
ifeq ($(CONFIG_MFD_WM[...]),y)
Thanks,
Paul Bolle
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists