From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755753Ab1KQDgU (ORCPT ); Wed, 16 Nov 2011 22:36:20 -0500 Received: from eu1sys200aog104.obsmtp.com ([207.126.144.117]:53342 "EHLO eu1sys200aog104.obsmtp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752155Ab1KQDgS (ORCPT ); Wed, 16 Nov 2011 22:36:18 -0500 Message-ID: <4EC48122.8050800@st.com> Date: Thu, 17 Nov 2011 09:06:02 +0530 From: Viresh Kumar User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:6.0) Gecko/20110812 Thunderbird/6.0 MIME-Version: 1.0 To: Rabin Vincent Cc: Linus WALLEIJ , Srinidhi KASAGAR , "sameo@linux.intel.com" , "linux-kernel@vger.kernel.org" , Armando VISCONTI , Shiraz HASHIM , Vipin KUMAR , Rajeev KUMAR , Deepak SIKRI , Vipul Kumar SAMAR , Amit VIRDI , Pratyush ANAND , Bhupesh SHARMA , "viresh.linux@gmail.com" , Bhavna YADAV , Vincenzo FRASCINO , Mirko GARDI , "grant.likely@secretlab.ca" Subject: Re: [PATCH 1/5] mfd/stmpe: Pass partnum as param to stmpe_probe() References: <004126aa92b5c1e0d1b464409510fd5dd9771523.1321442150.git.viresh.kumar@st.com> In-Reply-To: Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 11/16/2011 9:05 PM, Rabin Vincent wrote: > On Wed, Nov 16, 2011 at 16:56, Viresh Kumar wrote: >> partnum is required during probe to get variant's info. Currently partnum was >> getting set in i2c interface after it is used and is not at all getting set in >> spi interface. > > So your previous patch is broken? Please fix it and resend it instead > since it's not merged yet. > Sure. >> >> This can be passed as param to stmpe_probe, so that it is available early. With >> this, there is no need of i2c interface's init() routine, as it does nothing >> else than calling dev_set_drvdata(). So better remove this routine for i2c. >> >> partnum defined in struct stmpe is of no use now, as it is only used once during >> probe of stmpe, so we can remove it from struct stmpe too. > > Not quite; it's used from drivers/input/keyboard/stmpe-keypad.c. Please > preserve this stmpe->partnum, drop your 2/5 patch which exposes variant > externally, and instead use stmpe->partnum in 5/5. Yes, will do this. -- viresh