lkml.org 
[lkml]   [2005]   [May]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [lm-sensors] [PATCH 2.6.12-rc4 15/15] drivers/i2c/chips/adm1026.c: use dynamic sysfs callbacks
    On 5/20/05, Jean Delvare <khali@linux-fr.org> wrote:
    >
    > Hi Greg,
    > disabled. While this feature was almost not used so far, I think we
    > should have the driver not create interface files for disabled inputs.
    > In the case of temperature channels which can be dynamically enabled and
    > disabled. it would even make sense to dynamically create and delete
    > related sysfs files. Doing so would allow for memory savings and would
    > also be less error-prone for the user (presenting an interface for
    > disabled features is quite confusing IMHO).

    If you think more than a few hwmon/chip drivers will benefit from
    dynamically creating the attributes, then maybe we can create some
    standard method for doing so, bmcsensors of course needs to
    dynamically allocate things, so I'd be using them too.

    An earlier idea was to create a standard sysfs function(s) for
    dynamically creating device_attributes (and others), but now we will
    have custom structures with an embedded device_attribute, it looks to
    me like each attribute type would require it's own function.

    Yani
    -
    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/

    \
     
     \ /
      Last update: 2005-05-20 10:56    [W:0.034 / U:0.448 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site