]> git.baikalelectronics.ru Git - kernel.git/commit
drm/nouveau/hwmon: expose the auto_point and pwm_min/max attrs
authorOscar Salvador <osalvador.vilardaga@gmail.com>
Thu, 18 May 2017 21:24:37 +0000 (23:24 +0200)
committerBen Skeggs <bskeggs@redhat.com>
Fri, 16 Jun 2017 04:05:02 +0000 (14:05 +1000)
commitb28d78f1876f32692a122f5fb2f080363678ab2f
tree6cd02b3bc4f94adf23e4c1fe765fcb02c7135491
parentbfb96e4c344e312858f53c9cad22150389a76cba
drm/nouveau/hwmon: expose the auto_point and pwm_min/max attrs

This patch creates a special group attributes for attrs like "*auto_point*".
We check if we have support for them, and if we do, we gather them all in
an attribute_group's structure which is the parameter regarding special groups
of hwmon_device_register_with_info
We also do the same for pwm_min/max attrs.

Signed-off-by: Oscar Salvador <osalvador.vilardaga@gmail.com>
Reviewed-by: Martin Peres <martin.peres@free.fr>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/nouveau_hwmon.c