search for: nouveau_hwmon_show_update_

Displaying 2 results from an estimated 2 matches for "nouveau_hwmon_show_update_".

2017 Apr 12
0
[PATCH 1/1] nouveau_hwmon: migrate to hwmon_device_register_with_info
...t; - char *buf) > -{ > - return sprintf(buf, "nouveau\n"); > + val / 1000); > + return val; > } > -static SENSOR_DEVICE_ATTR(name, S_IRUGO, nouveau_hwmon_show_name, NULL, 0); > > -static ssize_t nouveau_hwmon_show_update_rate(struct device *dev, > - struct device_attribute *attr, > - char *buf) > +static int > +nouveau_hwmon_show_update_rate(struct nouveau_drm *drm) > { > - return sprintf(buf, "1000\n"); > +...
2017 Apr 11
2
[PATCH 1/1] nouveau_hwmon: migrate to hwmon_device_register_with_info
...tatic ssize_t nouveau_hwmon_show_name(struct device *dev, - struct device_attribute *attr, - char *buf) -{ - return sprintf(buf, "nouveau\n"); + val / 1000); + return val; } -static SENSOR_DEVICE_ATTR(name, S_IRUGO, nouveau_hwmon_show_name, NULL, 0); -static ssize_t nouveau_hwmon_show_update_rate(struct device *dev, - struct device_attribute *attr, - char *buf) +static int +nouveau_hwmon_show_update_rate(struct nouveau_drm *drm) { - return sprintf(buf, "1000\n"); + return 1000; } -static SENSOR_DEVICE_ATTR(update_rate, S_IRUGO, - nouveau_hwmon_show_upd...