Displaying 7 results from an estimated 7 matches for "nouveau_temp_writ".
Did you mean:
nouveau_temp_write
2017 May 16
7
[PATCH v7 0/5] replace hwmon_device_register for hwmon_device_register_with_info
...change
* Coding-Style
* Move the check before the switch in nouveau_power_is_visible function
* Expose temperature attrs as RW again
* Get rid of nouveau_hwmon_set_pwm1/_enable and implement the code inside
nouveau_pwm_write
* Get rid of nouveau_hwmon_set_temp_* and implement the code inside
nouveau_temp_write
v6 -> v7:
* Got rid of all dummy functions that only had a return, and moved
code into the switch statements.
This patchseries replaces the deprecated hwmon_device_register function with the
new one hwmon_device_register_with_info.
It also does some cleanup.
Oscar Salvador (5):
nouveau/...
2017 May 16
0
[PATCH v7 0/5] replace hwmon_device_register for hwmon_device_register_with_info
...Move the check before the switch in nouveau_power_is_visible function
> * Expose temperature attrs as RW again
> * Get rid of nouveau_hwmon_set_pwm1/_enable and implement the code inside
> nouveau_pwm_write
> * Get rid of nouveau_hwmon_set_temp_* and implement the code inside
> nouveau_temp_write
> v6 -> v7:
> * Got rid of all dummy functions that only had a return, and moved
> code into the switch statements.
>
>
> This patchseries replaces the deprecated hwmon_device_register function with the
> new one hwmon_device_register_with_info.
> It also does some...
2017 May 18
7
[PATCH v8 0/5] replace hwmon_device_register for hwmon_device_register_with_info
...check before the switch in nouveau_power_is_visible function
* Expose temperature attrs as RW again
* Get rid of nouveau_hwmon_set_pwm1/_enable and implement the code inside
nouveau_pwm_write
* Get rid of nouveau_hwmon_set_temp_* and implement the code inside
nouveau_temp_write
v6 -> v7:
* Got rid of all dummy functions that only had a return, and moved
code into the switch statements.
v7 -> v8:
* Fix warnings
This patchseries replaces the deprecated hwmon_device_register function with the
new one hwmon_device_register_with_info.
It also does some...
2017 May 08
5
[PATCH v6 0/5] replace hwmon_device_register for hwmon_device_register_with_info
...change
* Coding-Style
* Move the check before the switch in nouveau_power_is_visible function
* Expose temperature attrs as RW again
* Get rid of nouveau_hwmon_set_pwm1/_enable and implement the code inside
nouveau_pwm_write
* Get rid of nouveau_hwmon_set_temp_* and implement the code inside
nouveau_temp_write
This patchseries replaces the deprecated hwmon_device_register function with the
new one hwmon_device_register_with_info.
It also does some cleanup.
Oscar Salvador (5):
nouveau/hwmon: Add config for all sensors and their settings
nouveau/hwmon: Add nouveau_hwmon_ops structure with
.is_...
2017 Apr 13
0
[PATCH 2/4] nouveau_hwmon: migrate to hwmon_device_register_with_info
...power_input:
+ *val = nouveau_hwmon_get_power1_input(drm);
+ break;
+ case hwmon_power_max:
+ *val = nouveau_hwmon_get_power1_max(drm);
+ break;
+ case hwmon_power_crit:
+ *val = nouveau_hwmon_get_power1_crit(drm);
+ break;
+ default:
+ return -EOPNOTSUPP;
+ }
+
+ return 0;
+}
+
+static int
+nouveau_temp_write(struct device *dev, u32 attr, int channel, long val)
+{
+ struct drm_device *drm_dev = dev_get_drvdata(dev);
+ struct nouveau_drm *drm = nouveau_drm(drm_dev);
+ int i;
+
+ switch (attr) {
+ case hwmon_temp_max:
+ return nouveau_hwmon_set_max_temp(drm, val);
+ case hwmon_temp_max_hyst:
+ return n...
2017 Apr 11
2
[PATCH 1/1] nouveau_hwmon: migrate to hwmon_device_register_with_info
...power_input:
+ *val = nouveau_hwmon_get_power1_input(drm);
+ break;
+ case hwmon_power_max:
+ *val = nouveau_hwmon_get_power1_max(drm);
+ break;
+ case hwmon_power_crit:
+ *val = nouveau_hwmon_get_power1_crit(drm);
+ break;
+ default:
+ return -EOPNOTSUPP;
+ }
+
+ return 0;
+}
+
+static int
+nouveau_temp_write(struct device *dev, u32 attr, int channel, long val)
+{
+ struct drm_device *drm_dev = dev_get_drvdata(dev);
+ struct nouveau_drm *drm = nouveau_drm(drm_dev);
+
+ switch (attr) {
+ case hwmon_temp_max:
+ nouveau_hwmon_set_max_temp(drm, val);
+ break;
+ case hwmon_temp_max_hyst:
+ nouveau_hwmon_...
2017 Apr 12
0
[PATCH 1/1] nouveau_hwmon: migrate to hwmon_device_register_with_info
...t; + break;
> + case hwmon_power_crit:
> + *val = nouveau_hwmon_get_power1_crit(drm);
> + break;
> + default:
> + return -EOPNOTSUPP;
> + }
> +
> + return 0;
> +}
> +
> +static int
> +nouveau_temp_write(struct device *dev, u32 attr, int channel, long val)
> +{
> + struct drm_device *drm_dev = dev_get_drvdata(dev);
> + struct nouveau_drm *drm = nouveau_drm(drm_dev);
> +
> + switch (attr) {
> + case hwmon_temp_max:
> + nouveau_hwmon_set_max...