Lines Matching refs:hwmon
29 #include <linux/hwmon.h>
30 #include <linux/hwmon-sysfs.h>
671 struct nouveau_hwmon *hwmon;
677 NV_DEBUG(drm, "Skipping hwmon registration\n");
681 hwmon = drm->hwmon = kzalloc(sizeof(*hwmon), GFP_KERNEL);
682 if (!hwmon)
684 hwmon->dev = dev;
699 NV_ERROR(drm, "Unable to register hwmon device: %d\n", ret);
703 hwmon->hwmon = hwmon_dev;
714 struct nouveau_hwmon *hwmon = nouveau_hwmon(dev);
716 if (!hwmon)
719 if (hwmon->hwmon)
720 hwmon_device_unregister(hwmon->hwmon);
722 nouveau_drm(dev)->hwmon = NULL;
723 kfree(hwmon);