aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/hwmon/ntc_thermistor.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/hwmon/ntc_thermistor.c b/drivers/hwmon/ntc_thermistor.c
index 56d83b2472c8..2823aff82c82 100644
--- a/drivers/hwmon/ntc_thermistor.c
+++ b/drivers/hwmon/ntc_thermistor.c
@@ -601,14 +601,14 @@ static int ntc_read_temp(void *data, int *temp)
601 return 0; 601 return 0;
602} 602}
603 603
604static ssize_t ntc_show_type(struct device *dev, 604static ssize_t ntc_type_show(struct device *dev,
605 struct device_attribute *attr, char *buf) 605 struct device_attribute *attr, char *buf)
606{ 606{
607 return sprintf(buf, "4\n"); 607 return sprintf(buf, "4\n");
608} 608}
609 609
610static ssize_t ntc_show_temp(struct device *dev, 610static ssize_t ntc_temp_show(struct device *dev,
611 struct device_attribute *attr, char *buf) 611 struct device_attribute *attr, char *buf)
612{ 612{
613 struct ntc_data *data = dev_get_drvdata(dev); 613 struct ntc_data *data = dev_get_drvdata(dev);
614 int ohm; 614 int ohm;
@@ -620,8 +620,8 @@ static ssize_t ntc_show_temp(struct device *dev,
620 return sprintf(buf, "%d\n", get_temp_mc(data, ohm)); 620 return sprintf(buf, "%d\n", get_temp_mc(data, ohm));
621} 621}
622 622
623static SENSOR_DEVICE_ATTR(temp1_type, S_IRUGO, ntc_show_type, NULL, 0); 623static SENSOR_DEVICE_ATTR_RO(temp1_type, ntc_type, 0);
624static SENSOR_DEVICE_ATTR(temp1_input, S_IRUGO, ntc_show_temp, NULL, 0); 624static SENSOR_DEVICE_ATTR_RO(temp1_input, ntc_temp, 0);
625 625
626static struct attribute *ntc_attrs[] = { 626static struct attribute *ntc_attrs[] = {
627 &sensor_dev_attr_temp1_type.dev_attr.attr, 627 &sensor_dev_attr_temp1_type.dev_attr.attr,