2010/9/30 Greg KH <gregkh@xxxxxxx>: > On Thu, Sep 30, 2010 at 06:33:10AM +0900, Tomoki Sekiyama wrote: >> 2010/9/29 Greg KH <gregkh@xxxxxxx>: >> > On Wed, Sep 29, 2010 at 12:16:50PM +0900, Tomoki Sekiyama wrote: >> >> Meywa-Denki/Kayac YUREX is a leg-shakes sensor device. >> >> See http://bbu.kayac.com/en/about/ for further information. >> >> This driver support read/write the leg-shakes counter in the device >> >> via a device file /dev/yurex[0-9]*. >> > >> > Is there any reason this has to be a character device? >> > Actually, that makes a lot of sense. For stuff like this it makes sense > to keep your character device node. Mind if I take your original patch > instead? No problem, of course. >> >?The way you use >> > the device seems to be just like a sysfs file. ?Could it be done as a >> > sysfs instead? ?If so, it would reduce the ammount of code here. >> > >> > Are there userspace tools that are expecting the /dev/ node, or is it >> > just used as you showed me at the meeting by running 'cat' and 'echo' on >> > the device node? >> >> I've tried the sysfs version, attached below (tested with 2.6.36-rc5). > > Thank you very much for the changed patch, but I think you got the > design right the first time, sorry for making you do more work. > > I'll go queue the original patch up. All right. Thanks! -- Tomoki Sekiyama -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html