From mboxrd@z Thu Jan 1 00:00:00 1970 From: Arnd Bergmann Subject: Re: [PATCH v3] Input: tsc2005 - Add support for tsc2004 Date: Thu, 29 Oct 2015 22:46:20 +0100 Message-ID: <4152426.STHOuGxqsW@wuerfel> References: <1446077554-19684-1-git-send-email-mwelling@ieee.org> <201510291514.OprNyiZf%fengguang.wu@intel.com> <20151029142237.GA11531@qwerty.qwertyembedded> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Return-path: In-Reply-To: <20151029142237.GA11531@qwerty.qwertyembedded> Sender: linux-input-owner@vger.kernel.org To: Michael Welling Cc: kbuild test robot , kbuild-all@01.org, Dmitry Torokhov , Tony Lindgren , Pavel Machek , Felipe Balbi , Sebastian Reichel , Roger Quadros , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-input@vger.kernel.org List-Id: devicetree@vger.kernel.org On Thursday 29 October 2015 09:22:37 Michael Welling wrote: > > > > All errors (new ones prefixed by >>): > > > > drivers/built-in.o: In function `tsc2005_cmd': > > >> tsc200x-core.c:(.text+0x2ae07f): undefined reference to `i2c_smbus_write_byte' > > Argh! > > How do I fix this one? > Move all the I2C specific code into the tsc2004.c file and remove the #ifdef. The problem is that tsc200x-core.c is used as built-in when TOUCHSCREEN_TSC2005=y and I2C=m, so it can't call functions that are defined in i2c-core.c. Arnd