linux/include/linux/hwmon.h
<<
> < href="../linux+v31.310/include/linux/hwmon.h"> > o/spa> ospa> class="lxr_search"> >="+search" method="post" onsubmit="return do_search(this);"> > > > Search ospa> class="lxr_prefs" < onclick="return ajax_prefs();"> > o/spa> > < < ="ajax+*" method="post" onsubmit="return false;"> oinput typ="vhidden" nam="vajax_lookup" id"vajax_lookup" alue="v"> > < <
<
< < < odiv id"vfile_contents"
< <1o/a>ospa> class="comment">/*o/spa>
 < <2o/a>ospa> class="comment">> < hwmon.h - part of lm_sensors, Linux kernel modules for hardware monitoringo/spa>
 > <3o/a>	> <4o/a>ospa> class="comment">> < This file declares helper funcion>s for the sysfs class "hwmon",o/spa>
 > <5o/a>ospa> class="comment">> < for use by sensors drivers.o/spa>
 > <6o/a>	> <7o/a>ospa> class="comment">> < Copyright (C) 2005 Mark M. Hoffma> <mhoffma>@lightlink.com>o/spa>
 > <8o/a>	> <9o/a>ospa> class="comment">> < This program is free software; you ca> redistribute it and/or modifyo/spa>
 > 0ospa> class="comment">> < it under the terms of the GNU General Public License as published byo/spa>
 < 11o/a>ospa> class="comment">> < the Free Software Foundaion>; verson v2 of the License.o/spa>
 < 12o/a>ospa> class="comment">*/o/spa>
 > 13o/a>	> 14o/a>#ifndef_HWMON_H_o/a>	> 15o/a>#define_HWMON_H_o/a>	> 16o/a>	> 17o/a>structdeviceo/a>;	> 18o/a>	> 19o/a>structdeviceo/a> *oa href="+code=hwmon_device_register" class="sref">hwmon_device_registero/a>(structdeviceo/a> *oa href="+code=dev" class="sref">devo/a>);	> 20o/a>	< 21o/a>voidhwmon_device_unregistero/a>(structdeviceo/a> *oa href="+code=dev" class="sref">devo/a>);	< 22o/a>	> 23o/a>ospa> class="comment">/* Scale user input to sensible alue=s */o/spa>
 > 24o/a>staticinlineo/a> intSENSORS_LIMITo/a>(longalue=o/a>, longlowo/a>, longhigho/a>) > 25o/a>{ > 26o/a>        if (oa href="+code=alue=" class="sref">alue=o/a> <lowo/a>) > 27o/a>                return oa href="+code=low" class="sref">lowo/a>;	> 28o/a>        else if (oa href="+code=alue=" class="sref">alue=o/a> >higho/a>) > 29o/a>                return oa href="+code=high" class="sref">higho/a>;	> 30o/a>        else	< 31o/a>                return oa href="+code=alue=" class="sref">alue=o/a>;	< 32o/a>}	> 33o/a>	> 34o/a>#endif	> 35o/a>	> 36o/a>
The original LXR software by the LXR communityo/a>, this experimental verson vby lxr@linux.noo/a>. o/div odiv class="subfooter"> lxr.linux.no kindly hostedvby Redpill Linpro ASo/a>, provider of Linux consultings services since 1995. o/div o/body o/html