Lines Matching refs:to

10 drivers that want to use the hardware monitoring framework.
14 to communicate with a hardware monitoring device. If you want to know this
17 For additional guidelines on how to write and improve hwmon drivers, please
41 of this function is a pointer to the parent device.
42 This function returns a pointer to the newly created hardware monitoring device
44 monitoring sysfs attributes are expected to have been created and attached to
45 the parent device prior to calling hwmon_device_register. A name attribute must
48 hwmon_device_register_with_groups is similar to hwmon_device_register. However,
49 it has additional parameters. The name parameter is a pointer to the hwmon
51 pointing to this name. The drvdata parameter is the pointer to the local
53 to the newly allocated hwmon device. The pointer can be retrieved by the driver
55 a pointer to a list of sysfs attribute groups. The list must be NULL terminated.
57 as well as all sysfs attributes attached to the hwmon device.
59 devm_hwmon_device_register_with_groups is similar to
61 hwmon device does not have to be removed explicitly by the removal function.
64 The parameter of this function is the pointer to the registered hardware
69 devm_hwmon_device_unregister does not normally have to be called. It is only
71 the call to devm_hwmon_device_register_with_groups.
73 The header file linux/hwmon-sysfs.h provides a number of useful macros to
76 In many cases, you can use the exsting define DEVICE_ATTR to declare such
79 will need to be passed to the sysfs attribute handling function.
81 SENSOR_DEVICE_ATTR and SENSOR_DEVICE_ATTR_2 can be used to define attributes
93 You can use to_sensor_dev_attr to get the pointer to this structure from the
94 attribute read or write function. Its parameter is the device to which the
106 Use to_sensor_dev_attr_2 to get the pointer to this structure. Its parameter
107 is the device to which the attribute is attached.