hwmon.h 1.0 KB

123456789101112131415161718192021222324252627282930313233
  1. /*
  2. hwmon.h - part of lm_sensors, Linux kernel modules for hardware monitoring
  3. This file declares helper functions for the sysfs class "hwmon",
  4. for use by sensors drivers.
  5. Copyright (C) 2005 Mark M. Hoffman <mhoffman@lightlink.com>
  6. This program is free software; you can redistribute it and/or modify
  7. it under the terms of the GNU General Public License as published by
  8. the Free Software Foundation; version 2 of the License.
  9. */
  10. #ifndef _HWMON_H_
  11. #define _HWMON_H_
  12. struct device;
  13. struct attribute_group;
  14. struct device *hwmon_device_register(struct device *dev);
  15. struct device *
  16. hwmon_device_register_with_groups(struct device *dev, const char *name,
  17. void *drvdata,
  18. const struct attribute_group **groups);
  19. struct device *
  20. devm_hwmon_device_register_with_groups(struct device *dev, const char *name,
  21. void *drvdata,
  22. const struct attribute_group **groups);
  23. void hwmon_device_unregister(struct device *dev);
  24. void devm_hwmon_device_unregister(struct device *dev);
  25. #endif