hwmon_device
struct hwmon_device *hwdev = to_hwmon_device(dev);
struct hwmon_device *hwdev = to_hwmon_device(tdata->dev);
struct hwmon_device *hwdev = to_hwmon_device(tdata->dev);
struct hwmon_device *hwdev = to_hwmon_device(dev);
struct hwmon_device *hwdev = to_hwmon_device(dev);
struct hwmon_device *hwdev = to_hwmon_device(dev);
struct hwmon_device *hwdev;
struct hwmon_device *hwdev = to_hwmon_device(dev);
struct hwmon_device *hwdev = to_hwmon_device(dev);
#define to_hwmon_device(d) container_of(d, struct hwmon_device, dev)
struct hwmon_device *hwdev = to_hwmon_device(dev);
struct hwmon_device *hwdev = to_hwmon_device(dev);
struct hwmon_device *hwdev = to_hwmon_device(dev);
struct hwmon_device *hwdev;
struct hwmon_device *hdev = to_hwmon_device(dev);
ctrl->hwmon_device = hwmon;
if (ctrl->hwmon_device) {
dev_get_drvdata(ctrl->hwmon_device);
hwmon_device_unregister(ctrl->hwmon_device);
ctrl->hwmon_device = NULL;
struct device *hwmon_device;
struct device *hwmon_device;
if (dev->hwmon_device)
hwmon_device_unregister(dev->hwmon_device);
dev->hwmon_device = hwmon_device_register_with_info(
if (IS_ERR(dev->hwmon_device)) {
dev->hwmon_device = NULL;
hba->hwmon_device = hwmon;
if (!hba->hwmon_device)
data = dev_get_drvdata(hba->hwmon_device);
hwmon_device_unregister(hba->hwmon_device);
hba->hwmon_device = NULL;
if (!hba->hwmon_device)
hwmon_notify_event(hba->hwmon_device, hwmon_temp, hwmon_temp_max_alarm, 0);
hwmon_notify_event(hba->hwmon_device, hwmon_temp, hwmon_temp_min_alarm, 0);
struct device *hwmon_device;