Home | History | Annotate | Download | only in nouveau

Lines Matching defs:hwmon

34 #include <linux/hwmon.h>
35 #include <linux/hwmon-sysfs.h>
727 struct nouveau_hwmon *hwmon;
733 NV_DEBUG(drm, "Skipping hwmon registration\n");
737 hwmon = drm->hwmon = kzalloc(sizeof(*hwmon), GFP_KERNEL);
738 if (!hwmon)
740 hwmon->dev = dev;
755 NV_ERROR(drm, "Unable to register hwmon device: %d\n", ret);
759 hwmon->hwmon = hwmon_dev;
770 struct nouveau_hwmon *hwmon = nouveau_hwmon(dev);
772 if (!hwmon)
775 if (hwmon->hwmon)
776 hwmon_device_unregister(hwmon->hwmon);
778 nouveau_drm(dev)->hwmon = NULL;
779 kfree(hwmon);