All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/5] replace hwmon_device_register for hwmon_device_register_with_info
@ 2017-04-17  7:47 Oscar Salvador
       [not found] ` <1492415272-20378-1-git-send-email-osalvador.vilardaga-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
  0 siblings, 1 reply; 13+ messages in thread
From: Oscar Salvador @ 2017-04-17  7:47 UTC (permalink / raw)
  To: nouveau, dri-devel; +Cc: Oscar Salvador

Hi!

This patchseries replaces the deprecated hwmon_device_register function with the
new one hwmon_device_register_with_info.
It also does some cleanup.

Here is the list of patches and what they do:

1/ Adds config structures for all sensors and their possible settings. This patch
   and the next one are just preparing the code for what it comes.

2/ Now everything goes through nouveua_hwmon_ops. There we set up wich functions will
   be called for read/write and for checking if an attribute should be created or not.
   In this patch we just add .is_visible/.read_string operations.
   Here we sill don't interactuate with the old code.

3/ Most of the work is being done here. We remove the old code and replace it with
   the new one related to the new api.
   Here we introduce the .write and .read operations, and create all functions
   regarding these operations.

4/ We add support for special attributes like *_auto_point*.

5/ Cleanup: Change permissions to numeric and add me to the author

Oscar Salvador (5):
  nouveau_hwmon: Add config for all sensors and their settings
  nouveau_hwmon: Add nouveau_hwmon_ops structure with
    .is_visible/.read_string
  nouveau_hwmon: Remove old code, add .write/.read operations
  nouveau_hwmon: Add support for auto_point attributes
  nouveau_hwmon: Change permissions to numeric

 drivers/gpu/drm/nouveau/nouveau_hwmon.c | 946 +++++++++++++++++---------------
 1 file changed, 494 insertions(+), 452 deletions(-)

-- 
2.1.4

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2017-04-20  7:32 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-04-17  7:47 [PATCH v2 0/5] replace hwmon_device_register for hwmon_device_register_with_info Oscar Salvador
     [not found] ` <1492415272-20378-1-git-send-email-osalvador.vilardaga-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2017-04-17  7:47   ` [PATCH v2 1/5] nouveau_hwmon: Add config for all sensors and their settings Oscar Salvador
     [not found]     ` <1492415272-20378-2-git-send-email-osalvador.vilardaga-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2017-04-19 18:11       ` Ilia Mirkin
2017-04-19 18:18         ` [Nouveau] " Oscar Salvador
2017-04-17  7:47   ` [PATCH v2 2/5] nouveau_hwmon: Add nouveau_hwmon_ops structure with .is_visible/.read_string Oscar Salvador
     [not found]     ` <1492415272-20378-3-git-send-email-osalvador.vilardaga-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2017-04-18  7:56       ` Karol Herbst
2017-04-20  6:47         ` [Nouveau] " Oscar Salvador
2017-04-20  7:32           ` Oscar Salvador
2017-04-19 18:19       ` Ilia Mirkin
2017-04-17  7:47   ` [PATCH v2 3/5] nouveau_hwmon: Remove old code, add .write/.read operations Oscar Salvador
2017-04-17  7:47   ` [PATCH v2 4/5] nouveau_hwmon: Add support for auto_point attributes Oscar Salvador
     [not found]     ` <1492415272-20378-5-git-send-email-osalvador.vilardaga-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2017-04-19 18:25       ` Ilia Mirkin
2017-04-17  7:47   ` [PATCH v2 5/5] nouveau_hwmon: Change permissions to numeric Oscar Salvador

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.