From mboxrd@z Thu Jan 1 00:00:00 1970 From: rajeev Subject: Re: [PATCH 21/74] ST SPEAr : Added keyboard support Date: Wed, 1 Sep 2010 11:11:57 +0530 Message-ID: <4C7DE7A5.5030805@st.com> References: <20100830164825.GA28186@core.coreip.homeip.net> <4C7DE35F.9080103@st.com> Mime-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7bit Return-path: Received: from eu1sys200aog110.obsmtp.com ([207.126.144.129]:36482 "EHLO eu1sys200aog110.obsmtp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751963Ab0IAFmI (ORCPT ); Wed, 1 Sep 2010 01:42:08 -0400 In-Reply-To: <4C7DE35F.9080103@st.com> Sender: linux-input-owner@vger.kernel.org List-Id: linux-input@vger.kernel.org To: Dmitry Torokhov Cc: Viresh KUMAR , "linux-arm-kernel@lists.infradead.org" , "linux-input@vger.kernel.org" , Shiraz HASHIM , Vipin KUMAR , Deepak SIKRI , Armando VISCONTI , Vipul Kumar SAMAR , Pratyush ANAND , Bhupesh SHARMA On 9/1/2010 10:53 AM, rajeev wrote: >>> +struct spear_kbd { >>> >> + struct input_dev *input; >>> >> + void __iomem *io_base; /* Keyboard Base Address */ >>> >> + struct clk *clk; >>> >> + int *keymap; >> > >> > You need a copy of keymap here so that userspace can modify it safely >> > via EVIOCSKEYCODE. >> > > We have one copy of struct spear_kbd per device structure. I think it > will be fine if we change this structure only. And so don't need to copy > another structure in driver. > Sorry!! I wanted to say "keymap array" not "struct spear_kbd" in above explanation. rajeev. From mboxrd@z Thu Jan 1 00:00:00 1970 From: rajeev-dlh.kumar@st.com (rajeev) Date: Wed, 1 Sep 2010 11:11:57 +0530 Subject: [PATCH 21/74] ST SPEAr : Added keyboard support In-Reply-To: <4C7DE35F.9080103@st.com> References: <20100830164825.GA28186@core.coreip.homeip.net> <4C7DE35F.9080103@st.com> Message-ID: <4C7DE7A5.5030805@st.com> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org On 9/1/2010 10:53 AM, rajeev wrote: >>> +struct spear_kbd { >>> >> + struct input_dev *input; >>> >> + void __iomem *io_base; /* Keyboard Base Address */ >>> >> + struct clk *clk; >>> >> + int *keymap; >> > >> > You need a copy of keymap here so that userspace can modify it safely >> > via EVIOCSKEYCODE. >> > > We have one copy of struct spear_kbd per device structure. I think it > will be fine if we change this structure only. And so don't need to copy > another structure in driver. > Sorry!! I wanted to say "keymap array" not "struct spear_kbd" in above explanation. rajeev.