From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757154Ab1KKLdS (ORCPT ); Fri, 11 Nov 2011 06:33:18 -0500 Received: from mail-yx0-f174.google.com ([209.85.213.174]:37655 "EHLO mail-yx0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751665Ab1KKLdQ convert rfc822-to-8bit (ORCPT ); Fri, 11 Nov 2011 06:33:16 -0500 MIME-Version: 1.0 In-Reply-To: <4EBCF8FC.5020504@st.com> References: <4EBCF8FC.5020504@st.com> From: Rabin Vincent Date: Fri, 11 Nov 2011 17:02:35 +0530 X-Google-Sender-Auth: zgZ0vOKzMAMH6_ngh9X-fk9NGTY Message-ID: Subject: Re: [PATCH 0/2] mfd/stmpe: Add SPI interface support To: Viresh Kumar Cc: Linus WALLEIJ , "linux-kernel@vger.kernel.org" , "sameo@linux.intel.com" , 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 , Srinidhi KASAGAR Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Nov 11, 2011 at 15:59, Viresh Kumar wrote: > On 11/11/2011 3:13 PM, Rabin Vincent wrote: >> Could you instead convert stmpe to use the register map API, and then >> add the SPI interface?  Converting to regmap should both simplify the >> existing code as well as make it possible to add the second interface >> with fewer lines of code. > > Sorry Rabin, but i couldn't get your comment completely. :( > Can you please spend few lines on "what do you mean by register map API"? drivers/base/regmap, added in b83a313bf25 ("regmap: Add generic non-memory mapped register access API"). Several MFDs are already using it (git grep regmap drivers/mfd/), and patches to convert more are making the rounds on the lists.