27 #include <linux/module.h>
28 #include <linux/kernel.h>
30 #include <linux/device.h>
35 #include <linux/stddef.h>
38 #include <linux/types.h>
48 .channels = 1 << attr->
index,
77 static struct attribute *twl4030_madc_attributes[] = {
78 &sensor_dev_attr_in0_input.dev_attr.attr,
79 &sensor_dev_attr_temp1_input.dev_attr.attr,
80 &sensor_dev_attr_in2_input.dev_attr.attr,
81 &sensor_dev_attr_in3_input.dev_attr.attr,
82 &sensor_dev_attr_in4_input.dev_attr.attr,
83 &sensor_dev_attr_in5_input.dev_attr.attr,
84 &sensor_dev_attr_in6_input.dev_attr.attr,
85 &sensor_dev_attr_in7_input.dev_attr.attr,
86 &sensor_dev_attr_in8_input.dev_attr.attr,
87 &sensor_dev_attr_in9_input.dev_attr.attr,
88 &sensor_dev_attr_curr10_input.dev_attr.attr,
89 &sensor_dev_attr_in11_input.dev_attr.attr,
90 &sensor_dev_attr_in12_input.dev_attr.attr,
91 &sensor_dev_attr_in15_input.dev_attr.attr,
96 .attrs = twl4030_madc_attributes,
109 dev_err(&pdev->
dev,
"hwmon_device_register failed.\n");
110 ret = PTR_ERR(hwmon);
132 .probe = twl4030_madc_hwmon_probe,
133 .remove =
__exit_p(twl4030_madc_hwmon_remove),
135 .name =
"twl4030_madc_hwmon",