Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756029Ab0H3UoU (ORCPT ); Mon, 30 Aug 2010 16:44:20 -0400 Received: from mail-pw0-f46.google.com ([209.85.160.46]:54028 "EHLO mail-pw0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755809Ab0H3UoS (ORCPT ); Mon, 30 Aug 2010 16:44:18 -0400 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; b=NNRQkhCoPzS75px3QtpKpQloH3Mcy4ITQXaQVTZoBmDx0iNWFfV74tTFskex914ixM cn3vJYMLaF/eHs/gi2NviGOBIZ+ed+Bx9Ben7hG/jJm+Z1eCFf1gT8H//95RezqWybfy FFuOO5Cvj7u5HM01UcxnxVMgqVH+QqAkpRb2g= Date: Mon, 30 Aug 2010 13:44:12 -0700 From: Dmitry Torokhov To: Alan Cox Cc: Felipe Balbi , Hemanth V , linux-input@vger.kernel.org, linux-kernel@vger.kernel.org, linux-omap@vger.kernel.org, igor.stoppa@nokia.com, kai.svahn@nokia.com, matthias.nyman@nokia.com Subject: Re: Sensors and the input layer (was Re: [RFC] [PATCH V2 1/2] input: CMA3000 Accelerometer driver) Message-ID: <20100830204412.GA28711@core.coreip.homeip.net> References: <15445.10.24.255.17.1274424777.squirrel@dbdmail.itg.ti.com> <20100829184904.GC26209@core.coreip.homeip.net> <36abcb34cfbf34724d9a581a75b53e76@secure211.sgcpanel.com> <20100830214025.2f9677a1@lxorguk.ukuu.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20100830214025.2f9677a1@lxorguk.ukuu.org.uk> User-Agent: Mutt/1.5.20 (2009-12-10) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1597 Lines: 39 On Mon, Aug 30, 2010 at 09:40:25PM +0100, Alan Cox wrote: > On Mon, 30 Aug 2010 11:04:39 -0500 > Felipe Balbi wrote: > > > Hi Dmitry, > > > > When we tried to push N900's accelerometer driver as an > > input device you commented you didn't want sensors such > > as accelerometers, magnetometers, proximity, etc on the > > input layer because "they are not user input", although > > I didn't fully agree with you, we had to modify the drivers > > and, I believe, one of them is sitting in staging under > > the industrial i/o subsystem. > > > > Are you now accepting sensor drivers on the input layer ? > > that will make our life a lot easier but we need some > > definition to avoid having to re-work drivers when we > > want to push them to mainline. > > I would certainly vote for them being input when they are sometimes used > that way - compasses for example do get used by applications (like > compass programs, some of the real cool visualisation tools and things > like live/game mixed gaming environments) and accelerometers are gaming > inputs. But do you believe that input should be the "primary residence" for the devices when they are only _sometimes_ used as input devices? Or it would make sense to employ a converter from XXX to input (either purely in-kernel or userspace over uinput)? Thanks. -- Dmitry -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/