hwmon.c (01f1918833e4817fdb0810306c021c5cbee775d3) | hwmon.c (3870945aeb0e94126b9ea1cbd4f2f50d99eb948d) |
---|---|
1/* 2 * hwmon.c - part of lm_sensors, Linux kernel modules for hardware monitoring 3 * 4 * This file defines the sysfs class "hwmon", for use by sensors drivers. 5 * 6 * Copyright (C) 2005 Mark M. Hoffman <mhoffman@lightlink.com> 7 * 8 * This program is free software; you can redistribute it and/or modify --- 664 unchanged lines hidden (view full) --- 673} 674EXPORT_SYMBOL_GPL(hwmon_device_register_with_groups); 675 676/** 677 * hwmon_device_register_with_info - register w/ hwmon 678 * @dev: the parent device 679 * @name: hwmon name attribute 680 * @drvdata: driver data to attach to created device | 1/* 2 * hwmon.c - part of lm_sensors, Linux kernel modules for hardware monitoring 3 * 4 * This file defines the sysfs class "hwmon", for use by sensors drivers. 5 * 6 * Copyright (C) 2005 Mark M. Hoffman <mhoffman@lightlink.com> 7 * 8 * This program is free software; you can redistribute it and/or modify --- 664 unchanged lines hidden (view full) --- 673} 674EXPORT_SYMBOL_GPL(hwmon_device_register_with_groups); 675 676/** 677 * hwmon_device_register_with_info - register w/ hwmon 678 * @dev: the parent device 679 * @name: hwmon name attribute 680 * @drvdata: driver data to attach to created device |
681 * @info: pointer to hwmon chip information | 681 * @chip: pointer to hwmon chip information |
682 * @extra_groups: pointer to list of additional non-standard attribute groups 683 * 684 * hwmon_device_unregister() must be called when the device is no 685 * longer needed. 686 * 687 * Returns the pointer to the new device. 688 */ 689struct device * --- 90 unchanged lines hidden (view full) --- 780error: 781 devres_free(ptr); 782 return hwdev; 783} 784EXPORT_SYMBOL_GPL(devm_hwmon_device_register_with_groups); 785 786/** 787 * devm_hwmon_device_register_with_info - register w/ hwmon | 682 * @extra_groups: pointer to list of additional non-standard attribute groups 683 * 684 * hwmon_device_unregister() must be called when the device is no 685 * longer needed. 686 * 687 * Returns the pointer to the new device. 688 */ 689struct device * --- 90 unchanged lines hidden (view full) --- 780error: 781 devres_free(ptr); 782 return hwdev; 783} 784EXPORT_SYMBOL_GPL(devm_hwmon_device_register_with_groups); 785 786/** 787 * devm_hwmon_device_register_with_info - register w/ hwmon |
788 * @dev: the parent device 789 * @name: hwmon name attribute 790 * @drvdata: driver data to attach to created device 791 * @info: Pointer to hwmon chip information 792 * @groups - pointer to list of driver specific attribute groups | 788 * @dev: the parent device 789 * @name: hwmon name attribute 790 * @drvdata: driver data to attach to created device 791 * @chip: pointer to hwmon chip information 792 * @groups: pointer to list of driver specific attribute groups |
793 * 794 * Returns the pointer to the new device. The new device is automatically 795 * unregistered with the parent device. 796 */ 797struct device * 798devm_hwmon_device_register_with_info(struct device *dev, const char *name, 799 void *drvdata, 800 const struct hwmon_chip_info *chip, --- 99 unchanged lines hidden --- | 793 * 794 * Returns the pointer to the new device. The new device is automatically 795 * unregistered with the parent device. 796 */ 797struct device * 798devm_hwmon_device_register_with_info(struct device *dev, const char *name, 799 void *drvdata, 800 const struct hwmon_chip_info *chip, --- 99 unchanged lines hidden --- |