Lines Matching refs:device

14 to communicate with a hardware monitoring device. If you want to know this
26 struct device *hwmon_device_register(struct device *dev);
27 struct device *
28 hwmon_device_register_with_groups(struct device *dev, const char *name,
32 struct device *
33 devm_hwmon_device_register_with_groups(struct device *dev,
37 void hwmon_device_unregister(struct device *dev);
38 void devm_hwmon_device_unregister(struct device *dev);
40 hwmon_device_register registers a hardware monitoring device. The parameter
41 of this function is a pointer to the parent device.
42 This function returns a pointer to the newly created hardware monitoring device
45 the parent device prior to calling hwmon_device_register. A name attribute must
50 device name. The registration function wil create a name sysfs attribute
53 to the newly allocated hwmon device. The pointer can be retrieved by the driver
54 using dev_get_drvdata() on the hwmon device pointer. The groups parameter is
56 hwmon_device_register_with_groups creates the hwmon device with name attribute
57 as well as all sysfs attributes attached to the hwmon device.
60 hwmon_device_register_with_groups. However, it is device managed, meaning the
61 hwmon device does not have to be removed explicitly by the removal function.
63 hwmon_device_unregister deregisters a registered hardware monitoring device.
65 monitoring device structure. This function must be called from the driver
66 remove function if the hardware monitoring device was registered with
94 attribute read or write function. Its parameter is the device to which the
107 is the device to which the attribute is attached.