linux/drivers/hwmon/thmc50.c
<<
>>
Prefs
   1/*
   2 * thmc50.c - Part of lm_sensors, Linux kernel modules for hardware
   3 *            monitoring
   4 * Copyright (C) 2007 Krzysztof Helt <krzysztof.h1@wp.pl>
   5 * Based on 2.4 driver by Frodo Looijaard <frodol@dds.nl> and
   6 * Philip Edelbrock <phil@netroedge.com>
   7 *
   8 * This program is free software; you can redistribute it and/or modify
   9 * it under the terms of the GNU General Public License as published by
  10 * the Free Software Foundation; either version 2 of the License, or
  11 * (at your option) any later version.
  12 *
  13 * This program is distributed in the hope that it will be useful,
  14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
  15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  16 * GNU General Public License for more details.
  17 *
  18 * You should have received a copy of the GNU General Public License
  19 * along with this program; if not, write to the Free Software
  20 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  21 */
  22
  23#include <linux/module.h>
  24#include <linux/init.h>
  25#include <linux/slab.h>
  26#include <linux/i2c.h>
  27#include <linux/hwmon.h>
  28#include <linux/hwmon-sysfs.h>
  29#include <linux/err.h>
  30#include <linux/mutex.h>
  31#include <linux/jiffies.h>
  32
  33MODULE_LICENSE("GPL");
  34
  35/* Addresses to scan */
  36static const unsigned short normal_i2c[] = { 0x2c, 0x2d, 0x2e, I2C_CLIENT_END };
  37
  38/* Insmod parameters */
  39enum chips { thmc50, adm1022 };
  40
  41static unsigned short adm1022_temp3[16];
  42static unsigned int adm1022_temp3_num;
  43module_param_array(adm1022_temp3, ushort, &adm1022_temp3_num, 0);
  44MODULE_PARM_DESC(adm1022_temp3, "List of adapter,address pairs "
  45                        "to enable 3rd temperature (ADM1022 only)");
  46
  47/* Many THMC50 constants specified below */
  48
  49/* The THMC50 registers */
  50#define THMC50_REG_CONF                         0x40
  51#define THMC50_REG_COMPANY_ID                   0x3E
  52#define THMC50_REG_DIE_CODE                     0x3F
  53#define THMC50_REG_ANALOG_OUT                   0x19
  54/*
  55 * The mirror status register cannot be used as
  56 * reading it does not clear alarms.
  57 */
  58#define THMC50_REG_INTR                         0x41
  59
  60static const u8 THMC50_REG_TEMP[] = { 0x27, 0x26, 0x20 };
  61static const u8 THMC50_REG_TEMP_MIN[] = { 0x3A, 0x38, 0x2C };
  62static const u8 THMC50_REG_TEMP_MAX[] = { 0x39, 0x37, 0x2B };
  63static const u8 THMC50_REG_TEMP_CRITICAL[] = { 0x13, 0x14, 0x14 };
  64static const u8 THMC50_REG_TEMP_DEFAULT[] = { 0x17, 0x18, 0x18 };
  65
  66#define THMC50_REG_CONF_nFANOFF                 0x20
  67#define THMC50_REG_CONF_PROGRAMMED              0x08
  68
  69/* Each client has this additional data */
  70struct thmc50_data {
  71        struct device *hwmon_dev;
  72
  73        struct mutex update_lock;
  74        enum chips type;
  75        unsigned long last_updated;     /* In jiffies */
  76        char has_temp3;         /* !=0 if it is ADM1022 in temp3 mode */
  77        char valid;             /* !=0 if following fields are valid */
  78
  79        /* Register values */
  80        s8 temp_input[3];
  81        s8 temp_max[3];
  82        s8 temp_min[3];
  83        s8 temp_critical[3];
  84        u8 analog_out;
  85        u8 alarms;
  86};
  87
  88static int thmc50_detect(struct i2c_client *client,
  89                         struct i2c_board_info *info);
  90static int thmc50_probe(struct i2c_client *client,
  91                        const struct i2c_device_id *id);
  92static int thmc50_remove(struct i2c_client *client);
  93static void thmc50_init_client(struct i2c_client *client);
  94static struct thmc50_data *thmc50_update_device(struct device *dev);
  95
  96static const struct i2c_device_id thmc50_id[] = {
  97        { "adm1022", adm1022 },
  98        { "thmc50", thmc50 },
  99        { }
 100};
 101MODULE_DEVICE_TABLE(i2c, thmc50_id);
 102
 103static struct i2c_driver thmc50_driver = {
 104        .class = I2C_CLASS_HWMON,
 105        .driver = {
 106                .name = "thmc50",
 107        },
 108        .probe = thmc50_probe,
 109        .remove = thmc50_remove,
 110        .id_table = thmc50_id,
 111        .detect = thmc50_detect,
 112        .address_list = normal_i2c,
 113};
 114
 115static ssize_t show_analog_out(struct device *dev,
 116                               struct device_attribute *attr, char *buf)
 117{
 118        struct thmc50_data *data = thmc50_update_device(dev);
 119        return sprintf(buf, "%d\n", data->analog_out);
 120}
 121
 122static ssize_t set_analog_out(struct device *dev,
 123                              struct device_attribute *attr,
 124                              const char *buf, size_t count)
 125{
 126        struct i2c_client *client = to_i2c_client(dev);
 127        struct thmc50_data *data = i2c_get_clientdata(client);
 128        int config;
 129        unsigned long tmp;
 130        int err;
 131
 132        err = kstrtoul(buf, 10, &tmp);
 133        if (err)
 134                return err;
 135
 136        mutex_lock(&data->update_lock);
 137        data->analog_out = SENSORS_LIMIT(tmp, 0, 255);
 138        i2c_smbus_write_byte_data(client, THMC50_REG_ANALOG_OUT,
 139                                  data->analog_out);
 140
 141        config = i2c_smbus_read_byte_data(client, THMC50_REG_CONF);
 142        if (data->analog_out == 0)
 143                config &= ~THMC50_REG_CONF_nFANOFF;
 144        else
 145                config |= THMC50_REG_CONF_nFANOFF;
 146        i2c_smbus_write_byte_data(client, THMC50_REG_CONF, config);
 147
 148        mutex_unlock(&data->update_lock);
 149        return count;
 150}
 151
 152/* There is only one PWM mode = DC */
 153static ssize_t show_pwm_mode(struct device *dev, struct device_attribute *attr,
 154                             char *buf)
 155{
 156        return sprintf(buf, "0\n");
 157}
 158
 159/* Temperatures */
 160static ssize_t show_temp(struct device *dev, struct device_attribute *attr,
 161                         char *buf)
 162{
 163        int nr = to_sensor_dev_attr(attr)->index;
 164        struct thmc50_data *data = thmc50_update_device(dev);
 165        return sprintf(buf, "%d\n", data->temp_input[nr] * 1000);
 166}
 167
 168static ssize_t show_temp_min(struct device *dev, struct device_attribute *attr,
 169                             char *buf)
 170{
 171        int nr = to_sensor_dev_attr(attr)->index;
 172        struct thmc50_data *data = thmc50_update_device(dev);
 173        return sprintf(buf, "%d\n", data->temp_min[nr] * 1000);
 174}
 175
 176static ssize_t set_temp_min(struct device *dev, struct device_attribute *attr,
 177                            const char *buf, size_t count)
 178{
 179        int nr = to_sensor_dev_attr(attr)->index;
 180        struct i2c_client *client = to_i2c_client(dev);
 181        struct thmc50_data *data = i2c_get_clientdata(client);
 182        long val;
 183        int err;
 184
 185        err = kstrtol(buf, 10, &val);
 186        if (err)
 187                return err;
 188
 189        mutex_lock(&data->update_lock);
 190        data->temp_min[nr] = SENSORS_LIMIT(val / 1000, -128, 127);
 191        i2c_smbus_write_byte_data(client, THMC50_REG_TEMP_MIN[nr],
 192                                  data->temp_min[nr]);
 193        mutex_unlock(&data->update_lock);
 194        return count;
 195}
 196
 197static ssize_t show_temp_max(struct device *dev, struct device_attribute *attr,
 198                             char *buf)
 199{
 200        int nr = to_sensor_dev_attr(attr)->index;
 201        struct thmc50_data *data = thmc50_update_device(dev);
 202        return sprintf(buf, "%d\n", data->temp_max[nr] * 1000);
 203}
 204
 205static ssize_t set_temp_max(struct device *dev, struct device_attribute *attr,
 206                            const char *buf, size_t count)
 207{
 208        int nr = to_sensor_dev_attr(attr)->index;
 209        struct i2c_client *client = to_i2c_client(dev);
 210        struct thmc50_data *data = i2c_get_clientdata(client);
 211        long val;
 212        int err;
 213
 214        err = kstrtol(buf, 10, &val);
 215        if (err)
 216                return err;
 217
 218        mutex_lock(&data->update_lock);
 219        data->temp_max[nr] = SENSORS_LIMIT(val / 1000, -128, 127);
 220        i2c_smbus_write_byte_data(client, THMC50_REG_TEMP_MAX[nr],
 221                                  data->temp_max[nr]);
 222        mutex_unlock(&data->update_lock);
 223        return count;
 224}
 225
 226static ssize_t show_temp_critical(struct device *dev,
 227                                  struct device_attribute *attr,
 228                                  char *buf)
 229{
 230        int nr = to_sensor_dev_attr(attr)->index;
 231        struct thmc50_data *data = thmc50_update_device(dev);
 232        return sprintf(buf, "%d\n", data->temp_critical[nr] * 1000);
 233}
 234
 235static ssize_t show_alarm(struct device *dev, struct device_attribute *attr,
 236                          char *buf)
 237{
 238        int index = to_sensor_dev_attr(attr)->index;
 239        struct thmc50_data *data = thmc50_update_device(dev);
 240
 241        return sprintf(buf, "%u\n", (data->alarms >> index) & 1);
 242}
 243
 244#define temp_reg(offset)                                                \
 245static SENSOR_DEVICE_ATTR(temp##offset##_input, S_IRUGO, show_temp,     \
 246                        NULL, offset - 1);                              \
 247static SENSOR_DEVICE_ATTR(temp##offset##_min, S_IRUGO | S_IWUSR,        \
 248                        show_temp_min, set_temp_min, offset - 1);       \
 249static SENSOR_DEVICE_ATTR(temp##offset##_max, S_IRUGO | S_IWUSR,        \
 250                        show_temp_max, set_temp_max, offset - 1);       \
 251static SENSOR_DEVICE_ATTR(temp##offset##_crit, S_IRUGO,                 \
 252                        show_temp_critical, NULL, offset - 1);
 253
 254temp_reg(1);
 255temp_reg(2);
 256temp_reg(3);
 257
 258static SENSOR_DEVICE_ATTR(temp1_alarm, S_IRUGO, show_alarm, NULL, 0);
 259static SENSOR_DEVICE_ATTR(temp2_alarm, S_IRUGO, show_alarm, NULL, 5);
 260static SENSOR_DEVICE_ATTR(temp3_alarm, S_IRUGO, show_alarm, NULL, 1);
 261static SENSOR_DEVICE_ATTR(temp2_fault, S_IRUGO, show_alarm, NULL, 7);
 262static SENSOR_DEVICE_ATTR(temp3_fault, S_IRUGO, show_alarm, NULL, 2);
 263
 264static SENSOR_DEVICE_ATTR(pwm1, S_IRUGO | S_IWUSR, show_analog_out,
 265                          set_analog_out, 0);
 266static SENSOR_DEVICE_ATTR(pwm1_mode, S_IRUGO, show_pwm_mode, NULL, 0);
 267
 268static struct attribute *thmc50_attributes[] = {
 269        &sensor_dev_attr_temp1_max.dev_attr.attr,
 270        &sensor_dev_attr_temp1_min.dev_attr.attr,
 271        &sensor_dev_attr_temp1_input.dev_attr.attr,
 272        &sensor_dev_attr_temp1_crit.dev_attr.attr,
 273        &sensor_dev_attr_temp1_alarm.dev_attr.attr,
 274        &sensor_dev_attr_temp2_max.dev_attr.attr,
 275        &sensor_dev_attr_temp2_min.dev_attr.attr,
 276        &sensor_dev_attr_temp2_input.dev_attr.attr,
 277        &sensor_dev_attr_temp2_crit.dev_attr.attr,
 278        &sensor_dev_attr_temp2_alarm.dev_attr.attr,
 279        &sensor_dev_attr_temp2_fault.dev_attr.attr,
 280        &sensor_dev_attr_pwm1.dev_attr.attr,
 281        &sensor_dev_attr_pwm1_mode.dev_attr.attr,
 282        NULL
 283};
 284
 285static const struct attribute_group thmc50_group = {
 286        .attrs = thmc50_attributes,
 287};
 288
 289/* for ADM1022 3rd temperature mode */
 290static struct attribute *temp3_attributes[] = {
 291        &sensor_dev_attr_temp3_max.dev_attr.attr,
 292        &sensor_dev_attr_temp3_min.dev_attr.attr,
 293        &sensor_dev_attr_temp3_input.dev_attr.attr,
 294        &sensor_dev_attr_temp3_crit.dev_attr.attr,
 295        &sensor_dev_attr_temp3_alarm.dev_attr.attr,
 296        &sensor_dev_attr_temp3_fault.dev_attr.attr,
 297        NULL
 298};
 299
 300static const struct attribute_group temp3_group = {
 301        .attrs = temp3_attributes,
 302};
 303
 304/* Return 0 if detection is successful, -ENODEV otherwise */
 305static int thmc50_detect(struct i2c_client *client,
 306                         struct i2c_board_info *info)
 307{
 308        unsigned company;
 309        unsigned revision;
 310        unsigned config;
 311        struct i2c_adapter *adapter = client->adapter;
 312        const char *type_name;
 313
 314        if (!i2c_check_functionality(adapter, I2C_FUNC_SMBUS_BYTE_DATA)) {
 315                pr_debug("thmc50: detect failed, "
 316                         "smbus byte data not supported!\n");
 317                return -ENODEV;
 318        }
 319
 320        pr_debug("thmc50: Probing for THMC50 at 0x%2X on bus %d\n",
 321                 client->addr, i2c_adapter_id(client->adapter));
 322
 323        company = i2c_smbus_read_byte_data(client, THMC50_REG_COMPANY_ID);
 324        revision = i2c_smbus_read_byte_data(client, THMC50_REG_DIE_CODE);
 325        config = i2c_smbus_read_byte_data(client, THMC50_REG_CONF);
 326        if (revision < 0xc0 || (config & 0x10))
 327                return -ENODEV;
 328
 329        if (company ==4a; 0x10))
(&));
8
 329        if readvers/hwmon/thmc50.c#L233" id="L233" clclclclclclclclc="+code=client" class="s+co2/ss="s"> 329SENSOR_DEVICE_a.c#L327" id="L327" class="line" name="L32'92mon/thmc46id       \003sref">data = cliede=data" 3lass="sref">data->3client->(&am.c#L327" id="L327" clny"0buf" class="sref">c#L327" id="L327" cln+ 1 classname="L329"> 329attrnuattrnu<" clauf" class="sref">c#L327" id="L327" cln+= 2 id="L326" class="line" name="L326">on/thmc503c#L233" id="L233" class=3line"33e=S_IWUSR" class="sref">S_IWUEV;
atta href="+code=a9attL290"f" class="sref">c#L327" id="L327" cl]28" 29        if (oi2c_smbus"sref">dev, struct <3 href3"+code=device_attribute" class="srclass="sref">cl9atta href="+code=a9attL290"f" class="sref">c#L327" id="L327" cln+ 1]28" 29        i50: Probing for THMC50 at 0x%2X on bus %d\n",
 328
(struct  302};
 303
HMC50_REG_CONF);
temp2_fault, to_sen3or_de3_attr(HMC50_REG_CONF(val / 1000, -128, 127);
temp2_fault, data = config = temp2_fault, (T""""""""""""""""""""""""a href="+code=c/a>);
temp2_fault, data-><3 href34ode=THMC50_REG_TEMP_MIN" class="sref"bthmkss="sref">temp2_fault,  317                reon/thmc503c#L242" id="L242" class=3line"344;
 328
adapter, 3emp##offset##_input,3 328
         (struct  319 < 0xc0 || (config & 0x10))
show3temp_min,  317                reass="sref3>temp##offset##_max,3thmc3ref">show3temp_max,  319 320        (temp##ofef="+code=I2C_Fient-> a>, , show_temp_3ritic3l, ,3client, -> = temp2_fault, 
3a href="drivers/hwmon/th3c50.c35s="sref">count;
temp2_fault,   a href="drivers/hwmon/th3c50.c3L256" me="L317"> 317                reass="sref3 href="+code=temp_reg" c3ass="35ass="line" name="L327"> 327         +code=S_I3UGO" class="sref">S_IRUG3,3/* prob->/* prob-28, 1NODEV otherwise */
 305static int S_IRUG3,36="+code=S_IRUGO" class="sref"98};
+code=S_I3UGO" class="sref">S_IRUG3,3 328
S_IRUG3,36ss="sref">temref="+code=attr" class="sref">attr)->index;
temp2_fault, S_IRUG3,363 211        long NULL
S_IRUGO | client, ndex;
attr)->(1);
3="L265" class="line" nam3="L2636+code=device_attribute" class="srclass="sref">clGFP_KERNE" class="sref">dGFP_KERNE"n/thass="sref">temp2_fault, S_IRUGO,3(struct me;
+ss="sref3/a>,  < 0xc0 || (;
sensor_dev_att3_temp37ORS_LIMIT" class="sref">SENSORS_Lethmc50.c="+code=val" class="srefethmc50.c="+c id="L325" class="line" name="L325"> 325        sensor_dev_att3_temp37ode=THMC50_RE      }
        return co (attr)->att   long sensor_dev_attr_3emp1_37ode.[in>.28, 1ef="+code=dev_attr" >nr]);
 222        sensor_dev_attr3temp137, sensor_dev_attr_3emp1_37lass="sref">client,  325               sensor_dev_att3_temp37s="sref">count;
sensor_dev_att3_temp3_min. 302};
 303
sensor_dev_attr_3emp2_37ult. 211        lny" class="sref">csysfs_creac50.c#L299" id="L299" csysfs_creac50.c#L228, 1ef="+code=dev_attr" 50: Probing for THMC50 at 0x%2X on bus %d\natic attribukobjc sensor_dev_attr3temp23crit.;
 211        l id="L326" class="line" name="L326">arm" clas3="sref">sensor_dev_attr_3emp2_37attr();
 211        long sensor_dev_attr_3emp2_38thmc50_update_device" class="sref">thmc3_attr_pwm3" class="sref">sensor_de3_attr3pwm1. 302};
 303
sensor_dev_att3_pwm13mode.;
atta href="+code=ahasf">att"dris="line" name="L328"> 328
attr,
cl="L211"> 211        lny" class="sref">csysfs_creac50.c#L299" id="L299" csysfs_creac50.c#L228, 1ef="+code=dev_attr" 50: Probing for THMC50 at 0x%2X on bus %d\natic attribukobjc  282 211        l id="L326" class="line" name="L326">n/thmc50.3#L283" id="L283" class="3ine" 38e=S_IWUSR" class="sref">S_IWUgotorclass="sref">cl=x>.
iomove_sysfs_ame="L211"> 211   x>.
iomove_sysfs_ame="L   long  317                reame="L2863> 286        .sho3+code=thm350_attributes" class="sr3f">th388m1. 302};
 303
.chrive_atiass=rrgisterc i2c_check_functionalstati3 struct cl="L211"> 211        lny" class="sref">cPTR_ER+code=set_analogPTR_ER+ id="L325" class="li>nr]);
        sensor_dev_att3_temp39ss="sref">temp##ogotorclass="sref">cl=x>.
iomove_sysfs211"> 211   x>.
iomove_sysfs   long sensor_dev_att3_temp3_min. 317                reput" clas3="sref">sensor_dev_attr_3emp3_39ss="sref">NULL
sensor_dev_attr3temp33crit.0ss="sref">temp2_fault, sensor_dev_attr_3emp3_3larmtemp2_fault, sensor_dev_attr_3emp3_3aultcl=x>.
iomove_sysfs211"> 211   x>.
iomove_sysfs   l:s="sref">temp2_fault, ,
nr]);
atta href="+code=ahasf">att"driss="sref">temp2_fault, (csysfs_iomove_.c#L299" id="L299" csysfs_iomove_.c#L228, 1ef="+code=dev_attr" 50: Probing for THMC50 at 0x%2X on bus %d\natic attribukobjc cl=x>.
iomove_sysfs_ame="L211"> 211   x>.
iomove_sysfs_ame="L   l:s="sref">temp2_fault, attribukobjc  301        . 211        long t4mp3_atme="L317"> 317                r4n/thmc50.4#L302" id="L302" class="4ine" 40ss="sref">NULL
 304/* iomovers/hwmon/thmc50.c#L285iomove28, 1NODEV otherwise */
 305stss="sref">temp2_fault, thmc50_detect(4truct4i2c_check_functiona46    4                    stru4t .attr)->index;
compagethmc50.c="+code=val" class="sregethmc50.c="+c id="L325" class="line" name="L325"> 325                327        4href="dri4ers/hwmon/thmc50.c#L308"4id="L409lt.SENSsysfs_iomove_.c#L299" id="L299" csysfs_iomove_.c#L228, 1ef="+code=dev_attr" 50: Probing for THMC50 at 0x%2X on bus %d\natic attribukobjc nr]);
atta href="+code=ahasf">att"driss="sref">temp2_fault, adap4ertemp##oass="sref">SENSsysfs_iomove_.c#L299" id="L299" csysfs_iomove_.c#L228, 1ef="+code=dev_attr" 50: Probing for THMC50 at 0x%2X on bus %d\natic attribukobjc  312        co4st char *4a href="+code=type_name"4class4"sref">type_naion0ss="sref">temp2_fault, (<4 href="+code=adapter" cl4ss="s4ef">adme="L317"> 317                r4L315"> 314                temp2_fault,  314   304 309   ref="+cin>.
.
 305stss="sref">temp2_fault, i2c_check_functiona4turn -.attr)->index;
compagethmc50.c="+code=val" class="sregethmc50.c="+c id="L325" class="line" name="L325"> 325                318  >revision;
4href="+co4e=pr_debug" class="sref"4pr_de4ugision" class="sref">revision;
4h"+code=a4class="sref">i2c_adapter4id.show_analogODE" class="sref">THMC50_REG_DIE_CODE);
 325        ision" class="sref">revision;
4hivers/hw4; 325< =         cl02"> 302};
 303
nr]);
show_analogOD= 0ity" class="sref">i2c_check_functiona4>i2c_smbu4_read_byte_data(nr]);
show_analogODE1/a>        revis" class="sref">THMC50_REG/a>(val / 1000, -128, 127);
 325< = revision;
4hdrivers/4wmon/thmc50.c#L327" id="4327" 42+code=device_attribute" class="sref">e_attributef="+code=dev_a>nr]);
show_analog        ( 317                r4"drivers/4wmon/thmc50.c#L329" id="4329" 43ORS_LIMIT" class="sref">SENSTHMC50_REG_DIE_CODE);
 325        config =  43ode=THMC50_RE      }
);
 302};
 288
data = .;
9d href="2     2Nref">HMC50_REGC50_REG_CONF);
cliede=data" 3lass="sref">don/thmc50.c#L314" id=4L310" class="lEV;
revis" class="sref">THMC50_REG/a>(val / 1000, -128, 127);
T""""""""""""""""""""""""a href="+code=c/a>);
 314             an>,
 343a>, ...
   de=attr" class="srr" 50: Probing for THMC50      r4L315"> 314             aref=ANALOme="L303"> 303
temp24fault43ck_functiona4turn -.
o_ivers/hwmoref="+cin>.
o_ivers/hwmoatiass=unrrgisterc temp24fault4/a>, .attr)->index;
compagethmc50.c="+code=val" class="sregethmc50.c="+c id="L325" class="line" namtic <4/ temp24fault4/a>, ]);
data = .;
]);
temp24fault44mon/thmc46id       \003sref">data =4" class="4ref"bthmkss="sref">temp24fault44s="sref">client->nr]);
nrSENSsysfs_iomove_.c#L299"[in>.nr]);
 317<4a>   44           r4n/thmc50.4#L302" id="L302" 8" id="L348" cla9s="line" name="L348"> 344ers/hwmon/th4us_read_b4te_data.compagethmc50.c="jiffiup . 314             a>
i2c|| UGO" 3lass="sref">S_IRUGO,3n>.28, 1ef="+code=deval=sprintf" cde=>val=sref=0c50.c#L222e=show_analog_out" class=f""+code=S_4RU} elseD"line" name="L348"> 344           reame="L2863> 286       4rs/, &quo4;
nr]);
config 4amp; 44a>,  329SENSOR_DEVICE_a.4de=s34att4( 317<4a>   45
SENSTHMC50_REG_DIE_CODE);
 325        config ##_max,3<4 hr35thmc50_update_devic4" cla45vision;
4href="+co4e=pr_debug" classidx)"L3204 class="line" name="L3204> 3204/a>        /CE_ATTR" class="sref">SENSOR_DEVICE_a.4d class="450.c#L3f
sh4w_temp_3r4tic3l, [(&am.c#L327" L327" clny"0buf" cla0rivp (&am.c#L327"++0c50.c#L222e=show_analog_out" class=f"temp24fault45 name="L326">n/thmc50.3#L283"  \004sref">data = .;
.atta href="+code=a9SENSTHMC50_REG_DIE_CODE);

count;4(1);
3="L265" cl26">n/thmc50.3#L283"  \004sref">dat atta href="+code=acode=config" class="sref">config #+code=S_4Uion0ss="sref">temp24fault45
data = .;
atthode_" codeatta href="+code=a9SENSTHMC50_REG_DIE_CODE);
 317<4a>   45vision;
4hdrivers/4wmon/thmc50.c#L327" id="#L283"  \004sref">dat atta href="+code=acode=config" class="sref">config #m|= (1 c4s="35ass="line" name="L347"> 345a>, data = .;
atta href="+code=a9SENSTHMC50_REG_DIE_CODE);
4305static int dat atta href="+code=acode=config" class="sref">config a href="+4ode=compa id="L326" clas4="lin46a>, data = .;
atta href="+code=a9config adx)"L3204>,3 346a>, dataIT" class="sref">SENSTHMC50_REG_DIE_CODE);
temp24fault46vision;
4hivers/hw4;atta href="+code=a0.c#L222e=show_analog_out" class=f"e_temp_3r4        long atta href="+code=acode=config" class="sref">config anameNAME4las36ss="sref">NULL
4a hre46 name="L326">n/thmc50a href=4ity(<4 href="+code=adapta href="+4ode=inde)atic int e_attributef="+code=dev_a>nr]);
config a+code=S_4RNE"n/thass="sref">temp24fault46
SENSTHMC50_REG_DIE_CODE);
 325< = +ss="sre4327" 42+code=device_attribute" class="sref">e_attributef="+codlarmp config am|= (1 c4clMEM   long SENSTHMC50_REG_DIE_CODE);
cl="L211"> 2="srrrrrrrrINTe  325< = ;
. 325< = , S_IRUGO,3n>.28, 1ef="+code=deval=sprintf" cde=>val=sref=on/thmc50.c#L222e=show_analog_out" classatt   long  222        sensor_4ev_attr3t4mp137, .nr]);
 325               sensor4dev_att3_4emp37s="sref">count;4. 303
    4 ,
 211 211sensor_d4v_attr_3e4p2_38thmc50_update_devic4" cla4s="sreE_CODE);
cl="L211"> 2MODULE_AUTHOeEG_DIE_RE      }
 319 303
 319 348
The origi="d LXR software byriver19 x=.ineux.no kindly hos0.c#byr19