lm95241.c (0cce284537fb42d9c28b9b31038ffc9b464555f5) | lm95241.c (5c06d5689629803c84e5b23eef5023e7ac5493d7) |
---|---|
1/* 2 * Copyright (C) 2008, 2010 Davide Rizzo <elpa.rizzo@gmail.com> 3 * 4 * The LM95241 is a sensor chip made by National Semiconductors. 5 * It reports up to three temperatures (its own plus up to two external ones). 6 * Complete datasheet can be obtained from National's website at: 7 * http://www.national.com/ds.cgi/LM/LM95241.pdf 8 * --- 335 unchanged lines hidden (view full) --- 344static umode_t lm95241_is_visible(const void *data, 345 enum hwmon_sensor_types type, 346 u32 attr, int channel) 347{ 348 switch (type) { 349 case hwmon_chip: 350 switch (attr) { 351 case hwmon_chip_update_interval: | 1/* 2 * Copyright (C) 2008, 2010 Davide Rizzo <elpa.rizzo@gmail.com> 3 * 4 * The LM95241 is a sensor chip made by National Semiconductors. 5 * It reports up to three temperatures (its own plus up to two external ones). 6 * Complete datasheet can be obtained from National's website at: 7 * http://www.national.com/ds.cgi/LM/LM95241.pdf 8 * --- 335 unchanged lines hidden (view full) --- 344static umode_t lm95241_is_visible(const void *data, 345 enum hwmon_sensor_types type, 346 u32 attr, int channel) 347{ 348 switch (type) { 349 case hwmon_chip: 350 switch (attr) { 351 case hwmon_chip_update_interval: |
352 return S_IRUGO | S_IWUSR; | 352 return 0644; |
353 } 354 break; 355 case hwmon_temp: 356 switch (attr) { 357 case hwmon_temp_input: | 353 } 354 break; 355 case hwmon_temp: 356 switch (attr) { 357 case hwmon_temp_input: |
358 return S_IRUGO; | 358 return 0444; |
359 case hwmon_temp_fault: | 359 case hwmon_temp_fault: |
360 return S_IRUGO; | 360 return 0444; |
361 case hwmon_temp_min: 362 case hwmon_temp_max: 363 case hwmon_temp_type: | 361 case hwmon_temp_min: 362 case hwmon_temp_max: 363 case hwmon_temp_type: |
364 return S_IRUGO | S_IWUSR; | 364 return 0644; |
365 } 366 break; 367 default: 368 break; 369 } 370 return 0; 371} 372 --- 137 unchanged lines hidden --- | 365 } 366 break; 367 default: 368 break; 369 } 370 return 0; 371} 372 --- 137 unchanged lines hidden --- |