From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mike Murphy Subject: Re: PATCH [1/3] drivers/input/xpad.c: Improve Xbox 360 wireless support and add sysfs interface Date: Mon, 2 Mar 2009 18:04:00 -0500 Message-ID: <5aa163d00903021504l1965ecdi3423a43134de10d0@mail.gmail.com> References: <5aa163d00902282053h38b0febbyb37fc30855fdc985@mail.gmail.com> <20090302130425.23cc628d.akpm@linux-foundation.org> <20090302211820.GA21489@kroah.com> <20090302133551.1266f725.akpm@linux-foundation.org> <5aa163d00903021359x3a4693f5tbb7f1e3fec4d88b8@mail.gmail.com> <20090302223916.GA31381@kroah.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: QUOTED-PRINTABLE Return-path: In-Reply-To: <20090302223916.GA31381@kroah.com> Sender: linux-kernel-owner@vger.kernel.org To: Greg KH Cc: Andrew Morton , linux-kernel@vger.kernel.org, linux-input@vger.kernel.org, linux-usb@vger.kernel.org, oliver@neukum.org, fweisbec@gmail.com, torvalds@linux-foundation.org List-Id: linux-input@vger.kernel.org On Mon, Mar 2, 2009 at 5:39 PM, Greg KH wrote: > > I tried to create such an interface years ago, and the macro tricks > involved ended up being horrible, and in the end, it didn't work. =A0= But > if you can come up with something, I'd love to see it. > > thanks, > > greg k-h > I could probably give it a shot, but possibly not until May... once the current semester ends. I really need to understand the kernel type system -- or at least the types that "should" be exposed to userspace -- before thinking about the design too much. Maybe that's the question that needs to be asked first: in general, what does a sysfs interface into a driver look like? It's certainly flexible enough to do a lot, and the existing interfaces allow it to do a lot, but is there a simplification that covers some large percentage of cases? Mike --=20 Mike Murphy Ph.D. Candidate and NSF Graduate Research Fellow Clemson University School of Computing 120 McAdams Hall Clemson, SC 29634-0974 USA Tel: +1 864.656.2838 Fax: +1 864.656.0145 http://cirg.cs.clemson.edu/~mamurph