From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754164Ab3ESLPC (ORCPT ); Sun, 19 May 2013 07:15:02 -0400 Received: from mail-pb0-f49.google.com ([209.85.160.49]:46677 "EHLO mail-pb0-f49.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753899Ab3ESLPA (ORCPT ); Sun, 19 May 2013 07:15:00 -0400 MIME-Version: 1.0 X-Originating-IP: [1.167.67.37] In-Reply-To: References: <1368943851.3455.8.camel@phoenix> Date: Sun, 19 May 2013 19:14:59 +0800 Message-ID: Subject: Re: [PATCH] gpio: mcp23s08: Fix build error when CONFIG_SPI_MASTER=y && CONFIG_I2C=m From: Axel Lin To: Andy Shevchenko Cc: Grant Likely , Linus Walleij , Lars Poeschel , Peter Korsgaard , "linux-kernel@vger.kernel.org" Content-Type: text/plain; charset=ISO-8859-1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org >> --- a/drivers/gpio/Kconfig >> +++ b/drivers/gpio/Kconfig >> @@ -636,7 +636,7 @@ config GPIO_MAX7301 >> >> config GPIO_MCP23S08 >> tristate "Microchip MCP23xxx I/O expander" >> - depends on SPI_MASTER || I2C >> + depends on (SPI_MASTER && I2C!=m) || I2C > > For me it looks like the result of the following will be the same > depends on (SPI_MASTER && !I2C) || I2C Yes, I think the result is the same. I just send a v2. So you can Ack the version you prefer. Thanks for the review. Axel