Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932798AbZJLQVA (ORCPT ); Mon, 12 Oct 2009 12:21:00 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S932785AbZJLQU7 (ORCPT ); Mon, 12 Oct 2009 12:20:59 -0400 Received: from cassiel.sirena.org.uk ([80.68.93.111]:53909 "EHLO cassiel.sirena.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932783AbZJLQU6 (ORCPT ); Mon, 12 Oct 2009 12:20:58 -0400 Date: Mon, 12 Oct 2009 17:20:20 +0100 From: Mark Brown To: Kay Sievers Cc: Kyungmin Park , linux-kernel@vger.kernel.org, linux-input@vger.kernel.org, soni.trilok@gmail.com Subject: Re: [PATCH] Haptic class support (v2) Message-ID: <20091012162020.GF22233@sirena.org.uk> References: <20091006074533.GA28889@july> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Cookie: Don't hit the keys so hard, it hurts. User-Agent: Mutt/1.5.18 (2008-05-17) X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: broonie@sirena.org.uk X-SA-Exim-Scanned: No (on cassiel.sirena.org.uk); SAEximRunCond expanded to false Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 955 Lines: 20 On Mon, Oct 12, 2009 at 05:42:08PM +0200, Kay Sievers wrote: > On Tue, Oct 6, 2009 at 09:45, Kyungmin Park wrote: > > To enable the haptic, echo 1 > /sys/class/haptic/${name}/enable > > You can adjust the level by echo ${level} > /sys/class/haptic/${name}/enable > > or > > With oneshot feature, echo ${msec time} > /sys/class/haptic/${name}/oneshot > Please never add any custom files to the top-level of a class > directory. This place is reserved for devices, and not for custom > files. It's a serious bug in the layout and API of sysfs that this > allowed at all. I'm assuming that ${name} is the device name in the above in which case it should be fine from that point of view? -- 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/