]> git.baikalelectronics.ru Git - kernel.git/commit
drm/nouveau/hwmon: Add nouveau_hwmon_ops structure with .is_visible/.read_string
authorOscar Salvador <osalvador.vilardaga@gmail.com>
Thu, 18 May 2017 21:24:35 +0000 (23:24 +0200)
committerBen Skeggs <bskeggs@redhat.com>
Fri, 16 Jun 2017 04:05:02 +0000 (14:05 +1000)
commite9597341b65fb5c4d962b4a609bb764445889af7
tree586a2c2f0185300f6af60e37de459f7eae57c45c
parent8496f429a064bd4f46b1ac52e1e6bc39010a3a59
drm/nouveau/hwmon: Add nouveau_hwmon_ops structure with .is_visible/.read_string

This patch introduces the nouveau_hwmon_ops structure, sets up
.is_visible and .read_string operations and adds all the functions
for these operations.
This is also a preparation for the next patches, where most of the
work is being done.
This code doesn't interacture with the old one.
It's just to make easier the review of all patches.

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