10 #include <linux/kernel.h>
11 #include <linux/slab.h>
12 #include <linux/module.h>
55 return sprintf(buf,
"%d\n", result);
77 int in_i = 1, temp_i = 1, curr_i = 1;
89 goto error_free_state;
100 goto error_release_channels;
106 goto error_free_attrs;
113 goto error_free_attrs;
134 goto error_free_attrs;
139 goto error_free_attrs;
141 a->
dev_attr.show = iio_hwmon_read_val;
148 platform_set_drvdata(pdev, st);
151 goto error_free_attrs;
156 goto error_remove_group;
163 iio_hwmon_free_attrs(st);
165 error_release_channels:
179 iio_hwmon_free_attrs(st);
191 .probe = iio_hwmon_probe,