lkml.org 
[lkml]   [2006]   [Oct]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [PATCH v2] Re: Battery class driver.
    Hi!

    > > > Hm. Again we have the question of whether to export 'threshold_pct'
    > > > vs.'threshold_abs', or whether to have a separate string property
    > > > which says what the 'unit' of the threshold is. I don't care much --
    > > > I'll do whatever DavidZ prefers.
    > >
    > > Unit is easier to process in HAL in my opinion.
    >
    > What about just prepending the unit to the 'threshold' file? Then user
    > space can expect the contents of said file to be of the form "%d %s". I
    > don't think that violates the "only one value per file" sysfs mantra.

    Bad idea... I bet someone will just ignore the units part, because all
    the machines he seen had mW there. Just put it into the name:

    power_avg_mV

    Pavel

    --
    Thanks for all the (sleeping) penguins.
    -
    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: 2006-10-28 20:59    [W:2.347 / U:0.088 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site