lkml.org 
[lkml]   [2009]   [Oct]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    From
    Date
    SubjectRe: [PATCH] Haptic class support (v2)
    On Tue, Oct 6, 2009 at 09:45, Kyungmin Park <kmpark@infradead.org> wrote:
    > This patch includes two haptic devices, isa1000 and isa1200
    > ISA1000 is gpio based haptic, but isa1200 is based on I2C
    > Both are working on Samsung SoCs and tested.
    >
    > 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.

    If you need these subsystem-wide contols please use a bus and not a
    class to stuff these files into a place where they don't mix up with
    the list of devices belonging to a class. Buses have all devices in a
    devices/ subdir so they will not conflict.

    Thanks,
    Kay


    \
     
     \ /
      Last update: 2009-10-12 18:15    [W:4.625 / U:0.024 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site