hwmon_dev 1132 drivers/ata/ahci_imx.c struct device *hwmon_dev; hwmon_dev 1134 drivers/ata/ahci_imx.c hwmon_dev = hwmon_dev 1139 drivers/ata/ahci_imx.c if (IS_ERR(hwmon_dev)) { hwmon_dev 1140 drivers/ata/ahci_imx.c ret = PTR_ERR(hwmon_dev); hwmon_dev 1143 drivers/ata/ahci_imx.c devm_thermal_zone_of_sensor_register(hwmon_dev, 0, hwmon_dev, hwmon_dev 1145 drivers/ata/ahci_imx.c dev_info(dev, "%s: sensor 'sata_ahci'\n", dev_name(hwmon_dev)); hwmon_dev 497 drivers/fsi/fsi-occ.c struct platform_device *hwmon_dev = to_platform_device(dev); hwmon_dev 499 drivers/fsi/fsi-occ.c platform_device_unregister(hwmon_dev); hwmon_dev 509 drivers/fsi/fsi-occ.c struct platform_device *hwmon_dev; hwmon_dev 557 drivers/fsi/fsi-occ.c hwmon_dev = platform_device_register_full(&hwmon_dev_info); hwmon_dev 558 drivers/fsi/fsi-occ.c if (!hwmon_dev) hwmon_dev 723 drivers/gpu/drm/nouveau/nouveau_hwmon.c struct device *hwmon_dev; hwmon_dev 745 drivers/gpu/drm/nouveau/nouveau_hwmon.c hwmon_dev = hwmon_device_register_with_info(dev->dev, "nouveau", dev, hwmon_dev 748 drivers/gpu/drm/nouveau/nouveau_hwmon.c if (IS_ERR(hwmon_dev)) { hwmon_dev 749 drivers/gpu/drm/nouveau/nouveau_hwmon.c ret = PTR_ERR(hwmon_dev); hwmon_dev 754 drivers/gpu/drm/nouveau/nouveau_hwmon.c hwmon->hwmon = hwmon_dev; hwmon_dev 198 drivers/hwmon/abituguru.c struct device *hwmon_dev; /* hwmon registered device */ hwmon_dev 1417 drivers/hwmon/abituguru.c data->hwmon_dev = hwmon_device_register(&pdev->dev); hwmon_dev 1418 drivers/hwmon/abituguru.c if (!IS_ERR(data->hwmon_dev)) hwmon_dev 1421 drivers/hwmon/abituguru.c res = PTR_ERR(data->hwmon_dev); hwmon_dev 1436 drivers/hwmon/abituguru.c hwmon_device_unregister(data->hwmon_dev); hwmon_dev 145 drivers/hwmon/abituguru3.c struct device *hwmon_dev; /* hwmon registered device */ hwmon_dev 1047 drivers/hwmon/abituguru3.c data->hwmon_dev = hwmon_device_register(&pdev->dev); hwmon_dev 1048 drivers/hwmon/abituguru3.c if (IS_ERR(data->hwmon_dev)) { hwmon_dev 1049 drivers/hwmon/abituguru3.c res = PTR_ERR(data->hwmon_dev); hwmon_dev 1069 drivers/hwmon/abituguru3.c hwmon_device_unregister(data->hwmon_dev); hwmon_dev 411 drivers/hwmon/abx500.c data->hwmon_dev = hwmon_device_register(&pdev->dev); hwmon_dev 412 drivers/hwmon/abx500.c if (IS_ERR(data->hwmon_dev)) { hwmon_dev 413 drivers/hwmon/abx500.c err = PTR_ERR(data->hwmon_dev); hwmon_dev 426 drivers/hwmon/abx500.c hwmon_device_unregister(data->hwmon_dev); hwmon_dev 437 drivers/hwmon/abx500.c hwmon_device_unregister(data->hwmon_dev); hwmon_dev 52 drivers/hwmon/abx500.h struct device *hwmon_dev; hwmon_dev 79 drivers/hwmon/acpi_power_meter.c struct device *hwmon_dev; hwmon_dev 888 drivers/hwmon/acpi_power_meter.c resource->hwmon_dev = hwmon_device_register(&device->dev); hwmon_dev 889 drivers/hwmon/acpi_power_meter.c if (IS_ERR(resource->hwmon_dev)) { hwmon_dev 890 drivers/hwmon/acpi_power_meter.c res = PTR_ERR(resource->hwmon_dev); hwmon_dev 913 drivers/hwmon/acpi_power_meter.c hwmon_device_unregister(resource->hwmon_dev); hwmon_dev 101 drivers/hwmon/ad7314.c struct device *hwmon_dev; hwmon_dev 108 drivers/hwmon/ad7314.c hwmon_dev = devm_hwmon_device_register_with_groups(&spi_dev->dev, hwmon_dev 111 drivers/hwmon/ad7314.c return PTR_ERR_OR_ZERO(hwmon_dev); hwmon_dev 177 drivers/hwmon/ad7414.c struct device *hwmon_dev; hwmon_dev 202 drivers/hwmon/ad7414.c hwmon_dev = devm_hwmon_device_register_with_groups(dev, hwmon_dev 205 drivers/hwmon/ad7414.c return PTR_ERR_OR_ZERO(hwmon_dev); hwmon_dev 239 drivers/hwmon/ad7418.c struct device *hwmon_dev; hwmon_dev 281 drivers/hwmon/ad7418.c hwmon_dev = devm_hwmon_device_register_with_groups(dev, hwmon_dev 284 drivers/hwmon/ad7418.c return PTR_ERR_OR_ZERO(hwmon_dev); hwmon_dev 435 drivers/hwmon/adc128d818.c struct device *hwmon_dev; hwmon_dev 484 drivers/hwmon/adc128d818.c hwmon_dev = devm_hwmon_device_register_with_groups(dev, client->name, hwmon_dev 486 drivers/hwmon/adc128d818.c if (IS_ERR(hwmon_dev)) { hwmon_dev 487 drivers/hwmon/adc128d818.c err = PTR_ERR(hwmon_dev); hwmon_dev 40 drivers/hwmon/adcxx.c struct device *hwmon_dev; hwmon_dev 179 drivers/hwmon/adcxx.c adc->hwmon_dev = hwmon_device_register(&spi->dev); hwmon_dev 180 drivers/hwmon/adcxx.c if (IS_ERR(adc->hwmon_dev)) { hwmon_dev 182 drivers/hwmon/adcxx.c status = PTR_ERR(adc->hwmon_dev); hwmon_dev 203 drivers/hwmon/adcxx.c hwmon_device_unregister(adc->hwmon_dev); hwmon_dev 433 drivers/hwmon/adm1021.c struct device *hwmon_dev; hwmon_dev 451 drivers/hwmon/adm1021.c hwmon_dev = devm_hwmon_device_register_with_groups(dev, client->name, hwmon_dev 454 drivers/hwmon/adm1021.c return PTR_ERR_OR_ZERO(hwmon_dev); hwmon_dev 524 drivers/hwmon/adm1025.c struct device *hwmon_dev; hwmon_dev 546 drivers/hwmon/adm1025.c hwmon_dev = devm_hwmon_device_register_with_groups(dev, client->name, hwmon_dev 548 drivers/hwmon/adm1025.c return PTR_ERR_OR_ZERO(hwmon_dev); hwmon_dev 1823 drivers/hwmon/adm1026.c struct device *hwmon_dev; hwmon_dev 1847 drivers/hwmon/adm1026.c hwmon_dev = devm_hwmon_device_register_with_groups(dev, client->name, hwmon_dev 1849 drivers/hwmon/adm1026.c return PTR_ERR_OR_ZERO(hwmon_dev); hwmon_dev 360 drivers/hwmon/adm1029.c struct device *hwmon_dev; hwmon_dev 376 drivers/hwmon/adm1029.c hwmon_dev = devm_hwmon_device_register_with_groups(dev, client->name, hwmon_dev 379 drivers/hwmon/adm1029.c return PTR_ERR_OR_ZERO(hwmon_dev); hwmon_dev 1029 drivers/hwmon/adm1031.c struct device *hwmon_dev; hwmon_dev 1054 drivers/hwmon/adm1031.c hwmon_dev = devm_hwmon_device_register_with_groups(dev, client->name, hwmon_dev 1056 drivers/hwmon/adm1031.c return PTR_ERR_OR_ZERO(hwmon_dev); hwmon_dev 711 drivers/hwmon/adm9240.c struct device *hwmon_dev; hwmon_dev 724 drivers/hwmon/adm9240.c hwmon_dev = devm_hwmon_device_register_with_groups(dev, hwmon_dev 728 drivers/hwmon/adm9240.c return PTR_ERR_OR_ZERO(hwmon_dev); hwmon_dev 108 drivers/hwmon/ads7828.c struct device *hwmon_dev; hwmon_dev 177 drivers/hwmon/ads7828.c hwmon_dev = devm_hwmon_device_register_with_groups(dev, client->name, hwmon_dev 180 drivers/hwmon/ads7828.c return PTR_ERR_OR_ZERO(hwmon_dev); hwmon_dev 162 drivers/hwmon/ads7871.c struct device *hwmon_dev; hwmon_dev 190 drivers/hwmon/ads7871.c hwmon_dev = devm_hwmon_device_register_with_groups(dev, spi->modalias, hwmon_dev 193 drivers/hwmon/ads7871.c return PTR_ERR_OR_ZERO(hwmon_dev); hwmon_dev 674 drivers/hwmon/adt7411.c struct device *hwmon_dev; hwmon_dev 693 drivers/hwmon/adt7411.c hwmon_dev = devm_hwmon_device_register_with_info(dev, client->name, hwmon_dev 697 drivers/hwmon/adt7411.c return PTR_ERR_OR_ZERO(hwmon_dev); hwmon_dev 1795 drivers/hwmon/adt7462.c struct device *hwmon_dev; hwmon_dev 1806 drivers/hwmon/adt7462.c hwmon_dev = devm_hwmon_device_register_with_groups(dev, client->name, hwmon_dev 1809 drivers/hwmon/adt7462.c return PTR_ERR_OR_ZERO(hwmon_dev); hwmon_dev 1225 drivers/hwmon/adt7470.c struct device *hwmon_dev; hwmon_dev 1244 drivers/hwmon/adt7470.c hwmon_dev = devm_hwmon_device_register_with_groups(dev, client->name, hwmon_dev 1248 drivers/hwmon/adt7470.c if (IS_ERR(hwmon_dev)) hwmon_dev 1249 drivers/hwmon/adt7470.c return PTR_ERR(hwmon_dev); hwmon_dev 1252 drivers/hwmon/adt7470.c dev_name(hwmon_dev)); hwmon_dev 1473 drivers/hwmon/adt7475.c struct device *hwmon_dev; hwmon_dev 1603 drivers/hwmon/adt7475.c hwmon_dev = devm_hwmon_device_register_with_groups(&client->dev, hwmon_dev 1607 drivers/hwmon/adt7475.c if (IS_ERR(hwmon_dev)) { hwmon_dev 1608 drivers/hwmon/adt7475.c ret = PTR_ERR(hwmon_dev); hwmon_dev 58 drivers/hwmon/adt7x10.c struct device *hwmon_dev; hwmon_dev 418 drivers/hwmon/adt7x10.c data->hwmon_dev = hwmon_device_register(dev); hwmon_dev 419 drivers/hwmon/adt7x10.c if (IS_ERR(data->hwmon_dev)) { hwmon_dev 420 drivers/hwmon/adt7x10.c ret = PTR_ERR(data->hwmon_dev); hwmon_dev 435 drivers/hwmon/adt7x10.c hwmon_device_unregister(data->hwmon_dev); hwmon_dev 454 drivers/hwmon/adt7x10.c hwmon_device_unregister(data->hwmon_dev); hwmon_dev 908 drivers/hwmon/amc6821.c struct device *hwmon_dev; hwmon_dev 925 drivers/hwmon/amc6821.c hwmon_dev = devm_hwmon_device_register_with_groups(dev, client->name, hwmon_dev 928 drivers/hwmon/amc6821.c return PTR_ERR_OR_ZERO(hwmon_dev); hwmon_dev 142 drivers/hwmon/applesmc.c static struct device *hwmon_dev; hwmon_dev 1322 drivers/hwmon/applesmc.c hwmon_dev = hwmon_device_register(&pdev->dev); hwmon_dev 1323 drivers/hwmon/applesmc.c if (IS_ERR(hwmon_dev)) { hwmon_dev 1324 drivers/hwmon/applesmc.c ret = PTR_ERR(hwmon_dev); hwmon_dev 1357 drivers/hwmon/applesmc.c hwmon_device_unregister(hwmon_dev); hwmon_dev 106 drivers/hwmon/as370-hwmon.c struct device *hwmon_dev; hwmon_dev 120 drivers/hwmon/as370-hwmon.c hwmon_dev = devm_hwmon_device_register_with_info(dev, hwmon_dev 125 drivers/hwmon/as370-hwmon.c return PTR_ERR_OR_ZERO(hwmon_dev); hwmon_dev 180 drivers/hwmon/asb100.c struct device *hwmon_dev; hwmon_dev 811 drivers/hwmon/asb100.c data->hwmon_dev = hwmon_device_register(&client->dev); hwmon_dev 812 drivers/hwmon/asb100.c if (IS_ERR(data->hwmon_dev)) { hwmon_dev 813 drivers/hwmon/asb100.c err = PTR_ERR(data->hwmon_dev); hwmon_dev 831 drivers/hwmon/asb100.c hwmon_device_unregister(data->hwmon_dev); hwmon_dev 107 drivers/hwmon/asus_atk0110.c struct device *hwmon_dev; hwmon_dev 1191 drivers/hwmon/asus_atk0110.c data->hwmon_dev = hwmon_device_register_with_groups(dev, "atk0110", hwmon_dev 1195 drivers/hwmon/asus_atk0110.c return PTR_ERR_OR_ZERO(data->hwmon_dev); hwmon_dev 1356 drivers/hwmon/asus_atk0110.c hwmon_device_unregister(data->hwmon_dev); hwmon_dev 252 drivers/hwmon/atxp1.c struct device *hwmon_dev; hwmon_dev 269 drivers/hwmon/atxp1.c hwmon_dev = devm_hwmon_device_register_with_groups(dev, client->name, hwmon_dev 272 drivers/hwmon/atxp1.c if (IS_ERR(hwmon_dev)) hwmon_dev 273 drivers/hwmon/atxp1.c return PTR_ERR(hwmon_dev); hwmon_dev 92 drivers/hwmon/coretemp.c struct device *hwmon_dev; hwmon_dev 500 drivers/hwmon/coretemp.c err = create_core_attrs(tdata, pdata->hwmon_dev, attr_no); hwmon_dev 523 drivers/hwmon/coretemp.c sysfs_remove_group(&pdata->hwmon_dev->kobj, &tdata->attr_group); hwmon_dev 542 drivers/hwmon/coretemp.c pdata->hwmon_dev = devm_hwmon_device_register_with_groups(dev, DRVNAME, hwmon_dev 544 drivers/hwmon/coretemp.c return PTR_ERR_OR_ZERO(pdata->hwmon_dev); hwmon_dev 399 drivers/hwmon/da9052-hwmon.c struct device *hwmon_dev; hwmon_dev 463 drivers/hwmon/da9052-hwmon.c hwmon_dev = devm_hwmon_device_register_with_groups(dev, "da9052", hwmon_dev 466 drivers/hwmon/da9052-hwmon.c err = PTR_ERR_OR_ZERO(hwmon_dev); hwmon_dev 238 drivers/hwmon/da9055-hwmon.c struct device *hwmon_dev; hwmon_dev 265 drivers/hwmon/da9055-hwmon.c hwmon_dev = devm_hwmon_device_register_with_groups(dev, "da9055", hwmon_dev 268 drivers/hwmon/da9055-hwmon.c return PTR_ERR_OR_ZERO(hwmon_dev); hwmon_dev 201 drivers/hwmon/dme1737.c struct device *hwmon_dev; hwmon_dev 2496 drivers/hwmon/dme1737.c data->hwmon_dev = hwmon_device_register(dev); hwmon_dev 2497 drivers/hwmon/dme1737.c if (IS_ERR(data->hwmon_dev)) { hwmon_dev 2499 drivers/hwmon/dme1737.c err = PTR_ERR(data->hwmon_dev); hwmon_dev 2514 drivers/hwmon/dme1737.c hwmon_device_unregister(data->hwmon_dev); hwmon_dev 2700 drivers/hwmon/dme1737.c data->hwmon_dev = hwmon_device_register(dev); hwmon_dev 2701 drivers/hwmon/dme1737.c if (IS_ERR(data->hwmon_dev)) { hwmon_dev 2703 drivers/hwmon/dme1737.c err = PTR_ERR(data->hwmon_dev); hwmon_dev 2718 drivers/hwmon/dme1737.c hwmon_device_unregister(data->hwmon_dev); hwmon_dev 349 drivers/hwmon/ds1621.c struct device *hwmon_dev; hwmon_dev 364 drivers/hwmon/ds1621.c hwmon_dev = devm_hwmon_device_register_with_groups(&client->dev, hwmon_dev 367 drivers/hwmon/ds1621.c return PTR_ERR_OR_ZERO(hwmon_dev); hwmon_dev 218 drivers/hwmon/ds620.c struct device *hwmon_dev; hwmon_dev 231 drivers/hwmon/ds620.c hwmon_dev = devm_hwmon_device_register_with_groups(dev, client->name, hwmon_dev 233 drivers/hwmon/ds620.c return PTR_ERR_OR_ZERO(hwmon_dev); hwmon_dev 393 drivers/hwmon/emc1403.c struct device *hwmon_dev; hwmon_dev 420 drivers/hwmon/emc1403.c hwmon_dev = devm_hwmon_device_register_with_groups(&client->dev, hwmon_dev 423 drivers/hwmon/emc1403.c if (IS_ERR(hwmon_dev)) hwmon_dev 424 drivers/hwmon/emc1403.c return PTR_ERR(hwmon_dev); hwmon_dev 557 drivers/hwmon/emc2103.c struct device *hwmon_dev; hwmon_dev 610 drivers/hwmon/emc2103.c hwmon_dev = devm_hwmon_device_register_with_groups(&client->dev, hwmon_dev 613 drivers/hwmon/emc2103.c if (IS_ERR(hwmon_dev)) hwmon_dev 614 drivers/hwmon/emc2103.c return PTR_ERR(hwmon_dev); hwmon_dev 617 drivers/hwmon/emc2103.c dev_name(hwmon_dev), client->name); hwmon_dev 452 drivers/hwmon/emc6w201.c struct device *hwmon_dev; hwmon_dev 461 drivers/hwmon/emc6w201.c hwmon_dev = devm_hwmon_device_register_with_groups(dev, client->name, hwmon_dev 464 drivers/hwmon/emc6w201.c return PTR_ERR_OR_ZERO(hwmon_dev); hwmon_dev 165 drivers/hwmon/f71805f.c struct device *hwmon_dev; hwmon_dev 1466 drivers/hwmon/f71805f.c data->hwmon_dev = hwmon_device_register(&pdev->dev); hwmon_dev 1467 drivers/hwmon/f71805f.c if (IS_ERR(data->hwmon_dev)) { hwmon_dev 1468 drivers/hwmon/f71805f.c err = PTR_ERR(data->hwmon_dev); hwmon_dev 1488 drivers/hwmon/f71805f.c hwmon_device_unregister(data->hwmon_dev); hwmon_dev 252 drivers/hwmon/f71882fg.c struct device *hwmon_dev; hwmon_dev 2488 drivers/hwmon/f71882fg.c data->hwmon_dev = hwmon_device_register(&pdev->dev); hwmon_dev 2489 drivers/hwmon/f71882fg.c if (IS_ERR(data->hwmon_dev)) { hwmon_dev 2490 drivers/hwmon/f71882fg.c err = PTR_ERR(data->hwmon_dev); hwmon_dev 2491 drivers/hwmon/f71882fg.c data->hwmon_dev = NULL; hwmon_dev 2510 drivers/hwmon/f71882fg.c if (data->hwmon_dev) hwmon_dev 2511 drivers/hwmon/f71882fg.c hwmon_device_unregister(data->hwmon_dev); hwmon_dev 83 drivers/hwmon/f75375s.c struct device *hwmon_dev; hwmon_dev 854 drivers/hwmon/f75375s.c data->hwmon_dev = hwmon_device_register(&client->dev); hwmon_dev 855 drivers/hwmon/f75375s.c if (IS_ERR(data->hwmon_dev)) { hwmon_dev 856 drivers/hwmon/f75375s.c err = PTR_ERR(data->hwmon_dev); hwmon_dev 872 drivers/hwmon/f75375s.c hwmon_device_unregister(data->hwmon_dev); hwmon_dev 455 drivers/hwmon/fam15h_power.c struct device *hwmon_dev; hwmon_dev 480 drivers/hwmon/fam15h_power.c hwmon_dev = devm_hwmon_device_register_with_groups(dev, "fam15h_power", hwmon_dev 483 drivers/hwmon/fam15h_power.c return PTR_ERR_OR_ZERO(hwmon_dev); hwmon_dev 258 drivers/hwmon/fschmd.c struct device *hwmon_dev; hwmon_dev 1198 drivers/hwmon/fschmd.c data->hwmon_dev = hwmon_device_register(&client->dev); hwmon_dev 1199 drivers/hwmon/fschmd.c if (IS_ERR(data->hwmon_dev)) { hwmon_dev 1200 drivers/hwmon/fschmd.c err = PTR_ERR(data->hwmon_dev); hwmon_dev 1201 drivers/hwmon/fschmd.c data->hwmon_dev = NULL; hwmon_dev 1279 drivers/hwmon/fschmd.c if (data->hwmon_dev) hwmon_dev 1280 drivers/hwmon/fschmd.c hwmon_device_unregister(data->hwmon_dev); hwmon_dev 761 drivers/hwmon/ftsteutates.c struct device *hwmon_dev; hwmon_dev 797 drivers/hwmon/ftsteutates.c hwmon_dev = devm_hwmon_device_register_with_groups(&client->dev, hwmon_dev 801 drivers/hwmon/ftsteutates.c if (IS_ERR(hwmon_dev)) hwmon_dev 802 drivers/hwmon/ftsteutates.c return PTR_ERR(hwmon_dev); hwmon_dev 178 drivers/hwmon/g760a.c struct device *hwmon_dev; hwmon_dev 194 drivers/hwmon/g760a.c hwmon_dev = devm_hwmon_device_register_with_groups(dev, client->name, hwmon_dev 197 drivers/hwmon/g760a.c return PTR_ERR_OR_ZERO(hwmon_dev); hwmon_dev 1039 drivers/hwmon/g762.c struct device *hwmon_dev; hwmon_dev 1072 drivers/hwmon/g762.c hwmon_dev = devm_hwmon_device_register_with_groups(dev, client->name, hwmon_dev 1074 drivers/hwmon/g762.c return PTR_ERR_OR_ZERO(hwmon_dev); hwmon_dev 618 drivers/hwmon/gl518sm.c struct device *hwmon_dev; hwmon_dev 640 drivers/hwmon/gl518sm.c hwmon_dev = devm_hwmon_device_register_with_groups(dev, client->name, hwmon_dev 642 drivers/hwmon/gl518sm.c return PTR_ERR_OR_ZERO(hwmon_dev); hwmon_dev 861 drivers/hwmon/gl520sm.c struct device *hwmon_dev; hwmon_dev 883 drivers/hwmon/gl520sm.c hwmon_dev = devm_hwmon_device_register_with_groups(dev, client->name, hwmon_dev 885 drivers/hwmon/gl520sm.c return PTR_ERR_OR_ZERO(hwmon_dev); hwmon_dev 31 drivers/hwmon/gpio-fan.c struct device *hwmon_dev; hwmon_dev 57 drivers/hwmon/gpio-fan.c sysfs_notify(&fan_data->hwmon_dev->kobj, NULL, "fan1_alarm"); hwmon_dev 58 drivers/hwmon/gpio-fan.c kobject_uevent(&fan_data->hwmon_dev->kobj, KOBJ_CHANGE); hwmon_dev 526 drivers/hwmon/gpio-fan.c fan_data->hwmon_dev = hwmon_dev 530 drivers/hwmon/gpio-fan.c if (IS_ERR(fan_data->hwmon_dev)) hwmon_dev 531 drivers/hwmon/gpio-fan.c return PTR_ERR(fan_data->hwmon_dev); hwmon_dev 212 drivers/hwmon/hih6130.c struct device *hwmon_dev; hwmon_dev 229 drivers/hwmon/hih6130.c hwmon_dev = devm_hwmon_device_register_with_groups(dev, client->name, hwmon_dev 232 drivers/hwmon/hih6130.c return PTR_ERR_OR_ZERO(hwmon_dev); hwmon_dev 107 drivers/hwmon/i5500_temp.c struct device *hwmon_dev; hwmon_dev 124 drivers/hwmon/i5500_temp.c hwmon_dev = devm_hwmon_device_register_with_groups(&pdev->dev, hwmon_dev 127 drivers/hwmon/i5500_temp.c return PTR_ERR_OR_ZERO(hwmon_dev); hwmon_dev 94 drivers/hwmon/i5k_amb.c struct device *hwmon_dev; hwmon_dev 380 drivers/hwmon/i5k_amb.c data->hwmon_dev = hwmon_device_register(&pdev->dev); hwmon_dev 381 drivers/hwmon/i5k_amb.c if (IS_ERR(data->hwmon_dev)) { hwmon_dev 382 drivers/hwmon/i5k_amb.c res = PTR_ERR(data->hwmon_dev); hwmon_dev 559 drivers/hwmon/i5k_amb.c hwmon_device_unregister(data->hwmon_dev); hwmon_dev 127 drivers/hwmon/ibmaem.c struct device *hwmon_dev; hwmon_dev 481 drivers/hwmon/ibmaem.c hwmon_device_unregister(data->hwmon_dev); hwmon_dev 564 drivers/hwmon/ibmaem.c data->hwmon_dev = hwmon_device_register(&data->pdev->dev); hwmon_dev 565 drivers/hwmon/ibmaem.c if (IS_ERR(data->hwmon_dev)) { hwmon_dev 569 drivers/hwmon/ibmaem.c res = PTR_ERR(data->hwmon_dev); hwmon_dev 596 drivers/hwmon/ibmaem.c hwmon_device_unregister(data->hwmon_dev); hwmon_dev 704 drivers/hwmon/ibmaem.c data->hwmon_dev = hwmon_device_register(&data->pdev->dev); hwmon_dev 705 drivers/hwmon/ibmaem.c if (IS_ERR(data->hwmon_dev)) { hwmon_dev 709 drivers/hwmon/ibmaem.c res = PTR_ERR(data->hwmon_dev); hwmon_dev 736 drivers/hwmon/ibmaem.c hwmon_device_unregister(data->hwmon_dev); hwmon_dev 66 drivers/hwmon/ibmpex.c struct device *hwmon_dev; hwmon_dev 482 drivers/hwmon/ibmpex.c data->hwmon_dev = hwmon_device_register(data->bmc_device); hwmon_dev 484 drivers/hwmon/ibmpex.c if (IS_ERR(data->hwmon_dev)) { hwmon_dev 505 drivers/hwmon/ibmpex.c hwmon_device_unregister(data->hwmon_dev); hwmon_dev 530 drivers/hwmon/ibmpex.c hwmon_device_unregister(data->hwmon_dev); hwmon_dev 665 drivers/hwmon/ibmpowernv.c struct device *hwmon_dev; hwmon_dev 685 drivers/hwmon/ibmpowernv.c hwmon_dev = devm_hwmon_device_register_with_groups(&pdev->dev, DRVNAME, hwmon_dev 689 drivers/hwmon/ibmpowernv.c return PTR_ERR_OR_ZERO(hwmon_dev); hwmon_dev 73 drivers/hwmon/iio_hwmon.c struct device *hwmon_dev; hwmon_dev 161 drivers/hwmon/iio_hwmon.c hwmon_dev = devm_hwmon_device_register_with_groups(dev, sname, st, hwmon_dev 163 drivers/hwmon/iio_hwmon.c return PTR_ERR_OR_ZERO(hwmon_dev); hwmon_dev 539 drivers/hwmon/ina209.c struct device *hwmon_dev; hwmon_dev 557 drivers/hwmon/ina209.c hwmon_dev = devm_hwmon_device_register_with_groups(&client->dev, hwmon_dev 560 drivers/hwmon/ina209.c if (IS_ERR(hwmon_dev)) { hwmon_dev 561 drivers/hwmon/ina209.c ret = PTR_ERR(hwmon_dev); hwmon_dev 439 drivers/hwmon/ina2xx.c struct device *hwmon_dev; hwmon_dev 486 drivers/hwmon/ina2xx.c hwmon_dev = devm_hwmon_device_register_with_groups(dev, client->name, hwmon_dev 488 drivers/hwmon/ina2xx.c if (IS_ERR(hwmon_dev)) hwmon_dev 489 drivers/hwmon/ina2xx.c return PTR_ERR(hwmon_dev); hwmon_dev 730 drivers/hwmon/ina3221.c struct device *hwmon_dev; hwmon_dev 792 drivers/hwmon/ina3221.c hwmon_dev = devm_hwmon_device_register_with_info(dev, client->name, ina, hwmon_dev 795 drivers/hwmon/ina3221.c if (IS_ERR(hwmon_dev)) { hwmon_dev 797 drivers/hwmon/ina3221.c ret = PTR_ERR(hwmon_dev); hwmon_dev 3041 drivers/hwmon/it87.c struct device *hwmon_dev; hwmon_dev 3176 drivers/hwmon/it87.c hwmon_dev = devm_hwmon_device_register_with_groups(dev, hwmon_dev 3179 drivers/hwmon/it87.c return PTR_ERR_OR_ZERO(hwmon_dev); hwmon_dev 464 drivers/hwmon/jc42.c struct device *hwmon_dev; hwmon_dev 509 drivers/hwmon/jc42.c hwmon_dev = devm_hwmon_device_register_with_info(dev, "jc42", hwmon_dev 512 drivers/hwmon/jc42.c return PTR_ERR_OR_ZERO(hwmon_dev); hwmon_dev 290 drivers/hwmon/k10temp.c struct device *hwmon_dev; hwmon_dev 333 drivers/hwmon/k10temp.c hwmon_dev = devm_hwmon_device_register_with_groups(dev, "k10temp", data, hwmon_dev 335 drivers/hwmon/k10temp.c return PTR_ERR_OR_ZERO(hwmon_dev); hwmon_dev 139 drivers/hwmon/k8temp.c struct device *hwmon_dev; hwmon_dev 206 drivers/hwmon/k8temp.c hwmon_dev = devm_hwmon_device_register_with_info(&pdev->dev, hwmon_dev 212 drivers/hwmon/k8temp.c return PTR_ERR_OR_ZERO(hwmon_dev); hwmon_dev 425 drivers/hwmon/lineage-pem.c struct device *hwmon_dev; hwmon_dev 500 drivers/hwmon/lineage-pem.c hwmon_dev = devm_hwmon_device_register_with_groups(dev, client->name, hwmon_dev 502 drivers/hwmon/lineage-pem.c return PTR_ERR_OR_ZERO(hwmon_dev); hwmon_dev 1094 drivers/hwmon/lm63.c struct device *hwmon_dev; hwmon_dev 1126 drivers/hwmon/lm63.c hwmon_dev = devm_hwmon_device_register_with_groups(dev, client->name, hwmon_dev 1128 drivers/hwmon/lm63.c return PTR_ERR_OR_ZERO(hwmon_dev); hwmon_dev 154 drivers/hwmon/lm70.c struct device *hwmon_dev; hwmon_dev 178 drivers/hwmon/lm70.c hwmon_dev = devm_hwmon_device_register_with_groups(&spi->dev, hwmon_dev 181 drivers/hwmon/lm70.c return PTR_ERR_OR_ZERO(hwmon_dev); hwmon_dev 196 drivers/hwmon/lm73.c struct device *hwmon_dev; hwmon_dev 212 drivers/hwmon/lm73.c hwmon_dev = devm_hwmon_device_register_with_groups(dev, client->name, hwmon_dev 214 drivers/hwmon/lm73.c if (IS_ERR(hwmon_dev)) hwmon_dev 215 drivers/hwmon/lm73.c return PTR_ERR(hwmon_dev); hwmon_dev 549 drivers/hwmon/lm75.c struct device *hwmon_dev; hwmon_dev 602 drivers/hwmon/lm75.c hwmon_dev = devm_hwmon_device_register_with_info(dev, client->name, hwmon_dev 605 drivers/hwmon/lm75.c if (IS_ERR(hwmon_dev)) hwmon_dev 606 drivers/hwmon/lm75.c return PTR_ERR(hwmon_dev); hwmon_dev 608 drivers/hwmon/lm75.c dev_info(dev, "%s: sensor '%s'\n", dev_name(hwmon_dev), client->name); hwmon_dev 321 drivers/hwmon/lm77.c struct device *hwmon_dev; hwmon_dev 334 drivers/hwmon/lm77.c hwmon_dev = devm_hwmon_device_register_with_groups(dev, client->name, hwmon_dev 336 drivers/hwmon/lm77.c return PTR_ERR_OR_ZERO(hwmon_dev); hwmon_dev 634 drivers/hwmon/lm78.c struct device *hwmon_dev; hwmon_dev 647 drivers/hwmon/lm78.c hwmon_dev = devm_hwmon_device_register_with_groups(dev, client->name, hwmon_dev 649 drivers/hwmon/lm78.c return PTR_ERR_OR_ZERO(hwmon_dev); hwmon_dev 788 drivers/hwmon/lm78.c struct device *hwmon_dev; hwmon_dev 817 drivers/hwmon/lm78.c hwmon_dev = devm_hwmon_device_register_with_groups(dev, data->name, hwmon_dev 819 drivers/hwmon/lm78.c return PTR_ERR_OR_ZERO(hwmon_dev); hwmon_dev 598 drivers/hwmon/lm80.c struct device *hwmon_dev; hwmon_dev 622 drivers/hwmon/lm80.c hwmon_dev = devm_hwmon_device_register_with_groups(dev, client->name, hwmon_dev 625 drivers/hwmon/lm80.c return PTR_ERR_OR_ZERO(hwmon_dev); hwmon_dev 323 drivers/hwmon/lm83.c struct device *hwmon_dev; hwmon_dev 344 drivers/hwmon/lm83.c hwmon_dev = devm_hwmon_device_register_with_groups(&new_client->dev, hwmon_dev 347 drivers/hwmon/lm83.c return PTR_ERR_OR_ZERO(hwmon_dev); hwmon_dev 1550 drivers/hwmon/lm85.c struct device *hwmon_dev; hwmon_dev 1618 drivers/hwmon/lm85.c hwmon_dev = devm_hwmon_device_register_with_groups(dev, client->name, hwmon_dev 1620 drivers/hwmon/lm85.c return PTR_ERR_OR_ZERO(hwmon_dev); hwmon_dev 918 drivers/hwmon/lm87.c struct device *hwmon_dev; hwmon_dev 968 drivers/hwmon/lm87.c hwmon_dev = devm_hwmon_device_register_with_groups( hwmon_dev 970 drivers/hwmon/lm87.c return PTR_ERR_OR_ZERO(hwmon_dev); hwmon_dev 1752 drivers/hwmon/lm90.c struct device *hwmon_dev; hwmon_dev 1865 drivers/hwmon/lm90.c hwmon_dev = devm_hwmon_device_register_with_info(dev, client->name, hwmon_dev 1868 drivers/hwmon/lm90.c if (IS_ERR(hwmon_dev)) hwmon_dev 1869 drivers/hwmon/lm90.c return PTR_ERR(hwmon_dev); hwmon_dev 298 drivers/hwmon/lm92.c struct device *hwmon_dev; hwmon_dev 312 drivers/hwmon/lm92.c hwmon_dev = devm_hwmon_device_register_with_groups(&new_client->dev, hwmon_dev 315 drivers/hwmon/lm92.c return PTR_ERR_OR_ZERO(hwmon_dev); hwmon_dev 2591 drivers/hwmon/lm93.c struct device *hwmon_dev; hwmon_dev 2621 drivers/hwmon/lm93.c hwmon_dev = devm_hwmon_device_register_with_groups(dev, client->name, hwmon_dev 2624 drivers/hwmon/lm93.c return PTR_ERR_OR_ZERO(hwmon_dev); hwmon_dev 685 drivers/hwmon/lm95234.c struct device *hwmon_dev; hwmon_dev 704 drivers/hwmon/lm95234.c hwmon_dev = devm_hwmon_device_register_with_groups(dev, client->name, hwmon_dev 706 drivers/hwmon/lm95234.c return PTR_ERR_OR_ZERO(hwmon_dev); hwmon_dev 440 drivers/hwmon/lm95241.c struct device *hwmon_dev; hwmon_dev 452 drivers/hwmon/lm95241.c hwmon_dev = devm_hwmon_device_register_with_info(dev, client->name, hwmon_dev 456 drivers/hwmon/lm95241.c return PTR_ERR_OR_ZERO(hwmon_dev); hwmon_dev 555 drivers/hwmon/lm95245.c struct device *hwmon_dev; hwmon_dev 573 drivers/hwmon/lm95245.c hwmon_dev = devm_hwmon_device_register_with_info(dev, client->name, hwmon_dev 577 drivers/hwmon/lm95245.c return PTR_ERR_OR_ZERO(hwmon_dev); hwmon_dev 375 drivers/hwmon/lochnagar-hwmon.c struct device *hwmon_dev; hwmon_dev 394 drivers/hwmon/lochnagar-hwmon.c hwmon_dev = devm_hwmon_device_register_with_info(dev, "Lochnagar", priv, hwmon_dev 398 drivers/hwmon/lochnagar-hwmon.c return PTR_ERR_OR_ZERO(hwmon_dev); hwmon_dev 452 drivers/hwmon/ltc2945.c struct device *hwmon_dev; hwmon_dev 464 drivers/hwmon/ltc2945.c hwmon_dev = devm_hwmon_device_register_with_groups(dev, client->name, hwmon_dev 467 drivers/hwmon/ltc2945.c return PTR_ERR_OR_ZERO(hwmon_dev); hwmon_dev 207 drivers/hwmon/ltc2990.c struct device *hwmon_dev; hwmon_dev 254 drivers/hwmon/ltc2990.c hwmon_dev = devm_hwmon_device_register_with_groups(&i2c->dev, hwmon_dev 259 drivers/hwmon/ltc2990.c return PTR_ERR_OR_ZERO(hwmon_dev); hwmon_dev 163 drivers/hwmon/ltc4151.c struct device *hwmon_dev; hwmon_dev 185 drivers/hwmon/ltc4151.c hwmon_dev = devm_hwmon_device_register_with_groups(dev, client->name, hwmon_dev 188 drivers/hwmon/ltc4151.c return PTR_ERR_OR_ZERO(hwmon_dev); hwmon_dev 227 drivers/hwmon/ltc4215.c struct device *hwmon_dev; hwmon_dev 242 drivers/hwmon/ltc4215.c hwmon_dev = devm_hwmon_device_register_with_groups(dev, client->name, hwmon_dev 245 drivers/hwmon/ltc4215.c return PTR_ERR_OR_ZERO(hwmon_dev); hwmon_dev 184 drivers/hwmon/ltc4222.c struct device *hwmon_dev; hwmon_dev 197 drivers/hwmon/ltc4222.c hwmon_dev = devm_hwmon_device_register_with_groups(dev, client->name, hwmon_dev 200 drivers/hwmon/ltc4222.c return PTR_ERR_OR_ZERO(hwmon_dev); hwmon_dev 448 drivers/hwmon/ltc4245.c struct device *hwmon_dev; hwmon_dev 465 drivers/hwmon/ltc4245.c hwmon_dev = devm_hwmon_device_register_with_info(&client->dev, hwmon_dev 469 drivers/hwmon/ltc4245.c return PTR_ERR_OR_ZERO(hwmon_dev); hwmon_dev 148 drivers/hwmon/ltc4260.c struct device *hwmon_dev; hwmon_dev 160 drivers/hwmon/ltc4260.c hwmon_dev = devm_hwmon_device_register_with_groups(dev, client->name, hwmon_dev 163 drivers/hwmon/ltc4260.c return PTR_ERR_OR_ZERO(hwmon_dev); hwmon_dev 199 drivers/hwmon/ltc4261.c struct device *hwmon_dev; hwmon_dev 219 drivers/hwmon/ltc4261.c hwmon_dev = devm_hwmon_device_register_with_groups(dev, client->name, hwmon_dev 222 drivers/hwmon/ltc4261.c return PTR_ERR_OR_ZERO(hwmon_dev); hwmon_dev 88 drivers/hwmon/ltq-cputemp.c struct device *hwmon_dev; hwmon_dev 101 drivers/hwmon/ltq-cputemp.c hwmon_dev = devm_hwmon_device_register_with_info(&pdev->dev, hwmon_dev 107 drivers/hwmon/ltq-cputemp.c if (IS_ERR(hwmon_dev)) { hwmon_dev 109 drivers/hwmon/ltq-cputemp.c return PTR_ERR(hwmon_dev); hwmon_dev 38 drivers/hwmon/max1111.c struct device *hwmon_dev; hwmon_dev 239 drivers/hwmon/max1111.c data->hwmon_dev = hwmon_device_register(&spi->dev); hwmon_dev 240 drivers/hwmon/max1111.c if (IS_ERR(data->hwmon_dev)) { hwmon_dev 242 drivers/hwmon/max1111.c err = PTR_ERR(data->hwmon_dev); hwmon_dev 264 drivers/hwmon/max1111.c hwmon_device_unregister(data->hwmon_dev); hwmon_dev 502 drivers/hwmon/max16065.c struct device *hwmon_dev; hwmon_dev 579 drivers/hwmon/max16065.c hwmon_dev = devm_hwmon_device_register_with_groups(dev, client->name, hwmon_dev 581 drivers/hwmon/max16065.c return PTR_ERR_OR_ZERO(hwmon_dev); hwmon_dev 268 drivers/hwmon/max1619.c struct device *hwmon_dev; hwmon_dev 281 drivers/hwmon/max1619.c hwmon_dev = devm_hwmon_device_register_with_groups(&new_client->dev, hwmon_dev 285 drivers/hwmon/max1619.c return PTR_ERR_OR_ZERO(hwmon_dev); hwmon_dev 399 drivers/hwmon/max1668.c struct device *hwmon_dev; hwmon_dev 418 drivers/hwmon/max1668.c hwmon_dev = devm_hwmon_device_register_with_groups(dev, client->name, hwmon_dev 420 drivers/hwmon/max1668.c return PTR_ERR_OR_ZERO(hwmon_dev); hwmon_dev 50 drivers/hwmon/max197.c struct device *hwmon_dev; hwmon_dev 301 drivers/hwmon/max197.c data->hwmon_dev = hwmon_device_register(&pdev->dev); hwmon_dev 302 drivers/hwmon/max197.c if (IS_ERR(data->hwmon_dev)) { hwmon_dev 303 drivers/hwmon/max197.c ret = PTR_ERR(data->hwmon_dev); hwmon_dev 319 drivers/hwmon/max197.c hwmon_device_unregister(data->hwmon_dev); hwmon_dev 26 drivers/hwmon/max31722.c struct device *hwmon_dev; hwmon_dev 92 drivers/hwmon/max31722.c data->hwmon_dev = hwmon_device_register_with_groups(&spi->dev, hwmon_dev 96 drivers/hwmon/max31722.c if (IS_ERR(data->hwmon_dev)) { hwmon_dev 98 drivers/hwmon/max31722.c return PTR_ERR(data->hwmon_dev); hwmon_dev 108 drivers/hwmon/max31722.c hwmon_device_unregister(data->hwmon_dev); hwmon_dev 457 drivers/hwmon/max31790.c struct device *hwmon_dev; hwmon_dev 478 drivers/hwmon/max31790.c hwmon_dev = devm_hwmon_device_register_with_info(dev, client->name, hwmon_dev 483 drivers/hwmon/max31790.c return PTR_ERR_OR_ZERO(hwmon_dev); hwmon_dev 485 drivers/hwmon/max6621.c struct device *hwmon_dev; hwmon_dev 532 drivers/hwmon/max6621.c hwmon_dev = devm_hwmon_device_register_with_info(dev, client->name, hwmon_dev 537 drivers/hwmon/max6621.c return PTR_ERR_OR_ZERO(hwmon_dev); hwmon_dev 524 drivers/hwmon/max6639.c struct device *hwmon_dev; hwmon_dev 539 drivers/hwmon/max6639.c hwmon_dev = devm_hwmon_device_register_with_groups(dev, client->name, hwmon_dev 542 drivers/hwmon/max6639.c return PTR_ERR_OR_ZERO(hwmon_dev); hwmon_dev 272 drivers/hwmon/max6642.c struct device *hwmon_dev; hwmon_dev 284 drivers/hwmon/max6642.c hwmon_dev = devm_hwmon_device_register_with_groups(&client->dev, hwmon_dev 287 drivers/hwmon/max6642.c return PTR_ERR_OR_ZERO(hwmon_dev); hwmon_dev 768 drivers/hwmon/max6650.c struct device *hwmon_dev; hwmon_dev 787 drivers/hwmon/max6650.c hwmon_dev = devm_hwmon_device_register_with_info(dev, hwmon_dev 791 drivers/hwmon/max6650.c err = PTR_ERR_OR_ZERO(hwmon_dev); hwmon_dev 601 drivers/hwmon/max6697.c struct device *hwmon_dev; hwmon_dev 623 drivers/hwmon/max6697.c hwmon_dev = devm_hwmon_device_register_with_groups(dev, client->name, hwmon_dev 626 drivers/hwmon/max6697.c return PTR_ERR_OR_ZERO(hwmon_dev); hwmon_dev 28 drivers/hwmon/mc13783-adc.c struct device *hwmon_dev; hwmon_dev 264 drivers/hwmon/mc13783-adc.c priv->hwmon_dev = hwmon_device_register(&pdev->dev); hwmon_dev 265 drivers/hwmon/mc13783-adc.c if (IS_ERR(priv->hwmon_dev)) { hwmon_dev 266 drivers/hwmon/mc13783-adc.c ret = PTR_ERR(priv->hwmon_dev); hwmon_dev 293 drivers/hwmon/mc13783-adc.c hwmon_device_unregister(priv->hwmon_dev); hwmon_dev 48 drivers/hwmon/mcp3021.c struct device *hwmon_dev; hwmon_dev 156 drivers/hwmon/mcp3021.c data->hwmon_dev = hwmon_device_register(&client->dev); hwmon_dev 157 drivers/hwmon/mcp3021.c if (IS_ERR(data->hwmon_dev)) { hwmon_dev 158 drivers/hwmon/mcp3021.c err = PTR_ERR(data->hwmon_dev); hwmon_dev 173 drivers/hwmon/mcp3021.c hwmon_device_unregister(data->hwmon_dev); hwmon_dev 193 drivers/hwmon/menf21bmc_hwmon.c struct device *hwmon_dev; hwmon_dev 208 drivers/hwmon/menf21bmc_hwmon.c hwmon_dev = devm_hwmon_device_register_with_groups(&pdev->dev, hwmon_dev 211 drivers/hwmon/menf21bmc_hwmon.c if (IS_ERR(hwmon_dev)) hwmon_dev 212 drivers/hwmon/menf21bmc_hwmon.c return PTR_ERR(hwmon_dev); hwmon_dev 293 drivers/hwmon/nct6683.c struct device *hwmon_dev; hwmon_dev 1194 drivers/hwmon/nct6683.c struct device *hwmon_dev; hwmon_dev 1286 drivers/hwmon/nct6683.c hwmon_dev = devm_hwmon_device_register_with_groups(dev, hwmon_dev 1288 drivers/hwmon/nct6683.c return PTR_ERR_OR_ZERO(hwmon_dev); hwmon_dev 3805 drivers/hwmon/nct6775.c struct device *hwmon_dev; hwmon_dev 4611 drivers/hwmon/nct6775.c hwmon_dev = devm_hwmon_device_register_with_groups(dev, data->name, hwmon_dev 4613 drivers/hwmon/nct6775.c return PTR_ERR_OR_ZERO(hwmon_dev); hwmon_dev 1064 drivers/hwmon/nct7802.c struct device *hwmon_dev; hwmon_dev 1082 drivers/hwmon/nct7802.c hwmon_dev = devm_hwmon_device_register_with_groups(dev, client->name, hwmon_dev 1085 drivers/hwmon/nct7802.c return PTR_ERR_OR_ZERO(hwmon_dev); hwmon_dev 877 drivers/hwmon/nct7904.c struct device *hwmon_dev; hwmon_dev 993 drivers/hwmon/nct7904.c hwmon_dev = hwmon_dev 996 drivers/hwmon/nct7904.c return PTR_ERR_OR_ZERO(hwmon_dev); hwmon_dev 641 drivers/hwmon/ntc_thermistor.c struct device *hwmon_dev; hwmon_dev 696 drivers/hwmon/ntc_thermistor.c hwmon_dev = devm_hwmon_device_register_with_info(dev, pdev_id->name, hwmon_dev 699 drivers/hwmon/ntc_thermistor.c if (IS_ERR(hwmon_dev)) { hwmon_dev 701 drivers/hwmon/ntc_thermistor.c return PTR_ERR(hwmon_dev); hwmon_dev 178 drivers/hwmon/pc87360.c struct device *hwmon_dev; hwmon_dev 1335 drivers/hwmon/pc87360.c data->hwmon_dev = hwmon_device_register(dev); hwmon_dev 1336 drivers/hwmon/pc87360.c if (IS_ERR(data->hwmon_dev)) { hwmon_dev 1337 drivers/hwmon/pc87360.c err = PTR_ERR(data->hwmon_dev); hwmon_dev 1351 drivers/hwmon/pc87360.c hwmon_device_unregister(data->hwmon_dev); hwmon_dev 47 drivers/hwmon/pc87427.c struct device *hwmon_dev; hwmon_dev 1104 drivers/hwmon/pc87427.c data->hwmon_dev = hwmon_device_register(&pdev->dev); hwmon_dev 1105 drivers/hwmon/pc87427.c if (IS_ERR(data->hwmon_dev)) { hwmon_dev 1106 drivers/hwmon/pc87427.c err = PTR_ERR(data->hwmon_dev); hwmon_dev 1122 drivers/hwmon/pc87427.c hwmon_device_unregister(data->hwmon_dev); hwmon_dev 67 drivers/hwmon/pcf8591.c struct device *hwmon_dev; hwmon_dev 218 drivers/hwmon/pcf8591.c data->hwmon_dev = hwmon_device_register(&client->dev); hwmon_dev 219 drivers/hwmon/pcf8591.c if (IS_ERR(data->hwmon_dev)) { hwmon_dev 220 drivers/hwmon/pcf8591.c err = PTR_ERR(data->hwmon_dev); hwmon_dev 236 drivers/hwmon/pcf8591.c hwmon_device_unregister(data->hwmon_dev); hwmon_dev 81 drivers/hwmon/pmbus/pmbus_core.c struct device *hwmon_dev; hwmon_dev 2300 drivers/hwmon/pmbus/pmbus_core.c data->debugfs = debugfs_create_dir(dev_name(data->hwmon_dev), hwmon_dev 2486 drivers/hwmon/pmbus/pmbus_core.c data->hwmon_dev = hwmon_device_register_with_groups(dev, client->name, hwmon_dev 2488 drivers/hwmon/pmbus/pmbus_core.c if (IS_ERR(data->hwmon_dev)) { hwmon_dev 2489 drivers/hwmon/pmbus/pmbus_core.c ret = PTR_ERR(data->hwmon_dev); hwmon_dev 2505 drivers/hwmon/pmbus/pmbus_core.c hwmon_device_unregister(data->hwmon_dev); hwmon_dev 2518 drivers/hwmon/pmbus/pmbus_core.c hwmon_device_unregister(data->hwmon_dev); hwmon_dev 304 drivers/hwmon/powr1220.c struct device *hwmon_dev; hwmon_dev 316 drivers/hwmon/powr1220.c hwmon_dev = devm_hwmon_device_register_with_groups(&client->dev, hwmon_dev 319 drivers/hwmon/powr1220.c return PTR_ERR_OR_ZERO(hwmon_dev); hwmon_dev 21 drivers/hwmon/raspberrypi-hwmon.c struct device *hwmon_dev; hwmon_dev 38 drivers/hwmon/raspberrypi-hwmon.c dev_err_once(data->hwmon_dev, "Failed to get throttled (%d)\n", hwmon_dev 51 drivers/hwmon/raspberrypi-hwmon.c dev_crit(data->hwmon_dev, "Undervoltage detected!\n"); hwmon_dev 53 drivers/hwmon/raspberrypi-hwmon.c dev_info(data->hwmon_dev, "Voltage normalised\n"); hwmon_dev 55 drivers/hwmon/raspberrypi-hwmon.c sysfs_notify(&data->hwmon_dev->kobj, NULL, "in0_lcrit_alarm"); hwmon_dev 117 drivers/hwmon/raspberrypi-hwmon.c data->hwmon_dev = devm_hwmon_device_register_with_info(dev, "rpi_volt", hwmon_dev 125 drivers/hwmon/raspberrypi-hwmon.c if (!PTR_ERR_OR_ZERO(data->hwmon_dev)) hwmon_dev 128 drivers/hwmon/raspberrypi-hwmon.c return PTR_ERR_OR_ZERO(data->hwmon_dev); hwmon_dev 43 drivers/hwmon/s3c-hwmon.c struct device *hwmon_dev; hwmon_dev 299 drivers/hwmon/s3c-hwmon.c hwmon->hwmon_dev = hwmon_device_register(&dev->dev); hwmon_dev 300 drivers/hwmon/s3c-hwmon.c if (IS_ERR(hwmon->hwmon_dev)) { hwmon_dev 302 drivers/hwmon/s3c-hwmon.c ret = PTR_ERR(hwmon->hwmon_dev); hwmon_dev 339 drivers/hwmon/s3c-hwmon.c hwmon_device_unregister(hwmon->hwmon_dev); hwmon_dev 360 drivers/hwmon/s3c-hwmon.c hwmon_device_unregister(hwmon->hwmon_dev); hwmon_dev 68 drivers/hwmon/sch5627.c struct device *hwmon_dev; hwmon_dev 447 drivers/hwmon/sch5627.c if (data->hwmon_dev) hwmon_dev 448 drivers/hwmon/sch5627.c hwmon_device_unregister(data->hwmon_dev); hwmon_dev 560 drivers/hwmon/sch5627.c data->hwmon_dev = hwmon_device_register(&pdev->dev); hwmon_dev 561 drivers/hwmon/sch5627.c if (IS_ERR(data->hwmon_dev)) { hwmon_dev 562 drivers/hwmon/sch5627.c err = PTR_ERR(data->hwmon_dev); hwmon_dev 563 drivers/hwmon/sch5627.c data->hwmon_dev = NULL; hwmon_dev 56 drivers/hwmon/sch5636.c struct device *hwmon_dev; hwmon_dev 378 drivers/hwmon/sch5636.c if (data->hwmon_dev) hwmon_dev 379 drivers/hwmon/sch5636.c hwmon_device_unregister(data->hwmon_dev); hwmon_dev 490 drivers/hwmon/sch5636.c data->hwmon_dev = hwmon_device_register(&pdev->dev); hwmon_dev 491 drivers/hwmon/sch5636.c if (IS_ERR(data->hwmon_dev)) { hwmon_dev 492 drivers/hwmon/sch5636.c err = PTR_ERR(data->hwmon_dev); hwmon_dev 493 drivers/hwmon/sch5636.c data->hwmon_dev = NULL; hwmon_dev 166 drivers/hwmon/sht15.c struct device *hwmon_dev; hwmon_dev 1002 drivers/hwmon/sht15.c data->hwmon_dev = hwmon_device_register(data->dev); hwmon_dev 1003 drivers/hwmon/sht15.c if (IS_ERR(data->hwmon_dev)) { hwmon_dev 1004 drivers/hwmon/sht15.c ret = PTR_ERR(data->hwmon_dev); hwmon_dev 1033 drivers/hwmon/sht15.c hwmon_device_unregister(data->hwmon_dev); hwmon_dev 257 drivers/hwmon/sht21.c struct device *hwmon_dev; hwmon_dev 275 drivers/hwmon/sht21.c hwmon_dev = devm_hwmon_device_register_with_groups(dev, client->name, hwmon_dev 277 drivers/hwmon/sht21.c return PTR_ERR_OR_ZERO(hwmon_dev); hwmon_dev 670 drivers/hwmon/sht3x.c struct device *hwmon_dev; hwmon_dev 723 drivers/hwmon/sht3x.c hwmon_dev = devm_hwmon_device_register_with_groups(dev, hwmon_dev 728 drivers/hwmon/sht3x.c if (IS_ERR(hwmon_dev)) hwmon_dev 731 drivers/hwmon/sht3x.c return PTR_ERR_OR_ZERO(hwmon_dev); hwmon_dev 195 drivers/hwmon/shtc1.c struct device *hwmon_dev; hwmon_dev 241 drivers/hwmon/shtc1.c hwmon_dev = devm_hwmon_device_register_with_groups(dev, hwmon_dev 245 drivers/hwmon/shtc1.c if (IS_ERR(hwmon_dev)) hwmon_dev 248 drivers/hwmon/shtc1.c return PTR_ERR_OR_ZERO(hwmon_dev); hwmon_dev 171 drivers/hwmon/sis5595.c struct device *hwmon_dev; hwmon_dev 633 drivers/hwmon/sis5595.c data->hwmon_dev = hwmon_device_register(&pdev->dev); hwmon_dev 634 drivers/hwmon/sis5595.c if (IS_ERR(data->hwmon_dev)) { hwmon_dev 635 drivers/hwmon/sis5595.c err = PTR_ERR(data->hwmon_dev); hwmon_dev 652 drivers/hwmon/sis5595.c hwmon_device_unregister(data->hwmon_dev); hwmon_dev 570 drivers/hwmon/smm665.c struct device *hwmon_dev; hwmon_dev 658 drivers/hwmon/smm665.c hwmon_dev = devm_hwmon_device_register_with_groups(&client->dev, hwmon_dev 661 drivers/hwmon/smm665.c if (IS_ERR(hwmon_dev)) { hwmon_dev 662 drivers/hwmon/smm665.c ret = PTR_ERR(hwmon_dev); hwmon_dev 223 drivers/hwmon/smsc47b397.c struct device *hwmon_dev; hwmon_dev 243 drivers/hwmon/smsc47b397.c hwmon_dev = devm_hwmon_device_register_with_groups(dev, "smsc47b397", hwmon_dev 246 drivers/hwmon/smsc47b397.c return PTR_ERR_OR_ZERO(hwmon_dev); hwmon_dev 120 drivers/hwmon/smsc47m1.c struct device *hwmon_dev; hwmon_dev 830 drivers/hwmon/smsc47m1.c data->hwmon_dev = hwmon_device_register(dev); hwmon_dev 831 drivers/hwmon/smsc47m1.c if (IS_ERR(data->hwmon_dev)) { hwmon_dev 832 drivers/hwmon/smsc47m1.c err = PTR_ERR(data->hwmon_dev); hwmon_dev 847 drivers/hwmon/smsc47m1.c hwmon_device_unregister(data->hwmon_dev); hwmon_dev 594 drivers/hwmon/smsc47m192.c struct device *hwmon_dev; hwmon_dev 616 drivers/hwmon/smsc47m192.c hwmon_dev = devm_hwmon_device_register_with_groups(dev, client->name, hwmon_dev 618 drivers/hwmon/smsc47m192.c return PTR_ERR_OR_ZERO(hwmon_dev); hwmon_dev 454 drivers/hwmon/tc654.c struct device *hwmon_dev; hwmon_dev 473 drivers/hwmon/tc654.c hwmon_dev = hwmon_dev 476 drivers/hwmon/tc654.c return PTR_ERR_OR_ZERO(hwmon_dev); hwmon_dev 111 drivers/hwmon/tc74.c struct device *hwmon_dev; hwmon_dev 148 drivers/hwmon/tc74.c hwmon_dev = devm_hwmon_device_register_with_groups(dev, hwmon_dev 151 drivers/hwmon/tc74.c return PTR_ERR_OR_ZERO(hwmon_dev); hwmon_dev 385 drivers/hwmon/thmc50.c struct device *hwmon_dev; hwmon_dev 405 drivers/hwmon/thmc50.c hwmon_dev = devm_hwmon_device_register_with_groups(dev, client->name, hwmon_dev 407 drivers/hwmon/thmc50.c return PTR_ERR_OR_ZERO(hwmon_dev); hwmon_dev 196 drivers/hwmon/tmp102.c struct device *hwmon_dev; hwmon_dev 251 drivers/hwmon/tmp102.c hwmon_dev = devm_hwmon_device_register_with_info(dev, client->name, hwmon_dev 255 drivers/hwmon/tmp102.c if (IS_ERR(hwmon_dev)) { hwmon_dev 257 drivers/hwmon/tmp102.c return PTR_ERR(hwmon_dev); hwmon_dev 116 drivers/hwmon/tmp103.c struct device *hwmon_dev; hwmon_dev 134 drivers/hwmon/tmp103.c hwmon_dev = devm_hwmon_device_register_with_groups(dev, client->name, hwmon_dev 136 drivers/hwmon/tmp103.c return PTR_ERR_OR_ZERO(hwmon_dev); hwmon_dev 330 drivers/hwmon/tmp108.c struct device *hwmon_dev; hwmon_dev 387 drivers/hwmon/tmp108.c hwmon_dev = devm_hwmon_device_register_with_info(dev, client->name, hwmon_dev 391 drivers/hwmon/tmp108.c return PTR_ERR_OR_ZERO(hwmon_dev); hwmon_dev 693 drivers/hwmon/tmp401.c struct device *hwmon_dev; hwmon_dev 724 drivers/hwmon/tmp401.c hwmon_dev = devm_hwmon_device_register_with_groups(dev, client->name, hwmon_dev 726 drivers/hwmon/tmp401.c if (IS_ERR(hwmon_dev)) hwmon_dev 727 drivers/hwmon/tmp401.c return PTR_ERR(hwmon_dev); hwmon_dev 285 drivers/hwmon/tmp421.c struct device *hwmon_dev; hwmon_dev 316 drivers/hwmon/tmp421.c hwmon_dev = devm_hwmon_device_register_with_info(dev, client->name, hwmon_dev 320 drivers/hwmon/tmp421.c return PTR_ERR_OR_ZERO(hwmon_dev); hwmon_dev 65 drivers/hwmon/ultra45_env.c struct device *hwmon_dev; hwmon_dev 272 drivers/hwmon/ultra45_env.c p->hwmon_dev = hwmon_device_register(&op->dev); hwmon_dev 273 drivers/hwmon/ultra45_env.c if (IS_ERR(p->hwmon_dev)) { hwmon_dev 274 drivers/hwmon/ultra45_env.c err = PTR_ERR(p->hwmon_dev); hwmon_dev 299 drivers/hwmon/ultra45_env.c hwmon_device_unregister(p->hwmon_dev); hwmon_dev 21 drivers/hwmon/vexpress-hwmon.c struct device *hwmon_dev; hwmon_dev 228 drivers/hwmon/vexpress-hwmon.c data->hwmon_dev = devm_hwmon_device_register_with_groups(&pdev->dev, hwmon_dev 231 drivers/hwmon/vexpress-hwmon.c return PTR_ERR_OR_ZERO(data->hwmon_dev); hwmon_dev 38 drivers/hwmon/via-cputemp.c struct device *hwmon_dev; hwmon_dev 168 drivers/hwmon/via-cputemp.c data->hwmon_dev = hwmon_device_register(&pdev->dev); hwmon_dev 169 drivers/hwmon/via-cputemp.c if (IS_ERR(data->hwmon_dev)) { hwmon_dev 170 drivers/hwmon/via-cputemp.c err = PTR_ERR(data->hwmon_dev); hwmon_dev 189 drivers/hwmon/via-cputemp.c hwmon_device_unregister(data->hwmon_dev); hwmon_dev 305 drivers/hwmon/via686a.c struct device *hwmon_dev; hwmon_dev 699 drivers/hwmon/via686a.c data->hwmon_dev = hwmon_device_register(&pdev->dev); hwmon_dev 700 drivers/hwmon/via686a.c if (IS_ERR(data->hwmon_dev)) { hwmon_dev 701 drivers/hwmon/via686a.c err = PTR_ERR(data->hwmon_dev); hwmon_dev 716 drivers/hwmon/via686a.c hwmon_device_unregister(data->hwmon_dev); hwmon_dev 105 drivers/hwmon/vt1211.c struct device *hwmon_dev; hwmon_dev 1201 drivers/hwmon/vt1211.c data->hwmon_dev = hwmon_device_register(dev); hwmon_dev 1202 drivers/hwmon/vt1211.c if (IS_ERR(data->hwmon_dev)) { hwmon_dev 1203 drivers/hwmon/vt1211.c err = PTR_ERR(data->hwmon_dev); hwmon_dev 1221 drivers/hwmon/vt1211.c hwmon_device_unregister(data->hwmon_dev); hwmon_dev 147 drivers/hwmon/vt8231.c struct device *hwmon_dev; hwmon_dev 830 drivers/hwmon/vt8231.c data->hwmon_dev = hwmon_device_register(&pdev->dev); hwmon_dev 831 drivers/hwmon/vt8231.c if (IS_ERR(data->hwmon_dev)) { hwmon_dev 832 drivers/hwmon/vt8231.c err = PTR_ERR(data->hwmon_dev); hwmon_dev 853 drivers/hwmon/vt8231.c hwmon_device_unregister(data->hwmon_dev); hwmon_dev 421 drivers/hwmon/w83627ehf.c struct device *hwmon_dev; hwmon_dev 2571 drivers/hwmon/w83627ehf.c data->hwmon_dev = hwmon_device_register(dev); hwmon_dev 2572 drivers/hwmon/w83627ehf.c if (IS_ERR(data->hwmon_dev)) { hwmon_dev 2573 drivers/hwmon/w83627ehf.c err = PTR_ERR(data->hwmon_dev); hwmon_dev 2591 drivers/hwmon/w83627ehf.c hwmon_device_unregister(data->hwmon_dev); hwmon_dev 353 drivers/hwmon/w83627hf.c struct device *hwmon_dev; hwmon_dev 1545 drivers/hwmon/w83627hf.c data->hwmon_dev = hwmon_device_register(dev); hwmon_dev 1546 drivers/hwmon/w83627hf.c if (IS_ERR(data->hwmon_dev)) { hwmon_dev 1547 drivers/hwmon/w83627hf.c err = PTR_ERR(data->hwmon_dev); hwmon_dev 1563 drivers/hwmon/w83627hf.c hwmon_device_unregister(data->hwmon_dev); hwmon_dev 266 drivers/hwmon/w83773g.c struct device *hwmon_dev; hwmon_dev 285 drivers/hwmon/w83773g.c hwmon_dev = devm_hwmon_device_register_with_info(dev, hwmon_dev 290 drivers/hwmon/w83773g.c return PTR_ERR_OR_ZERO(hwmon_dev); hwmon_dev 197 drivers/hwmon/w83781d.c struct device *hwmon_dev; hwmon_dev 1226 drivers/hwmon/w83781d.c data->hwmon_dev = hwmon_device_register(dev); hwmon_dev 1227 drivers/hwmon/w83781d.c if (IS_ERR(data->hwmon_dev)) { hwmon_dev 1228 drivers/hwmon/w83781d.c err = PTR_ERR(data->hwmon_dev); hwmon_dev 1247 drivers/hwmon/w83781d.c hwmon_device_unregister(data->hwmon_dev); hwmon_dev 1795 drivers/hwmon/w83781d.c data->hwmon_dev = hwmon_device_register(&pdev->dev); hwmon_dev 1796 drivers/hwmon/w83781d.c if (IS_ERR(data->hwmon_dev)) { hwmon_dev 1797 drivers/hwmon/w83781d.c err = PTR_ERR(data->hwmon_dev); hwmon_dev 1814 drivers/hwmon/w83781d.c hwmon_device_unregister(data->hwmon_dev); hwmon_dev 270 drivers/hwmon/w83791d.c struct device *hwmon_dev; hwmon_dev 1401 drivers/hwmon/w83791d.c data->hwmon_dev = hwmon_device_register(dev); hwmon_dev 1402 drivers/hwmon/w83791d.c if (IS_ERR(data->hwmon_dev)) { hwmon_dev 1403 drivers/hwmon/w83791d.c err = PTR_ERR(data->hwmon_dev); hwmon_dev 1421 drivers/hwmon/w83791d.c hwmon_device_unregister(data->hwmon_dev); hwmon_dev 261 drivers/hwmon/w83792d.c struct device *hwmon_dev; hwmon_dev 1424 drivers/hwmon/w83792d.c data->hwmon_dev = hwmon_device_register(dev); hwmon_dev 1425 drivers/hwmon/w83792d.c if (IS_ERR(data->hwmon_dev)) { hwmon_dev 1426 drivers/hwmon/w83792d.c err = PTR_ERR(data->hwmon_dev); hwmon_dev 1445 drivers/hwmon/w83792d.c hwmon_device_unregister(data->hwmon_dev); hwmon_dev 206 drivers/hwmon/w83793.c struct device *hwmon_dev; hwmon_dev 1532 drivers/hwmon/w83793.c hwmon_device_unregister(data->hwmon_dev); hwmon_dev 1836 drivers/hwmon/w83793.c data->hwmon_dev = hwmon_device_register(dev); hwmon_dev 1837 drivers/hwmon/w83793.c if (IS_ERR(data->hwmon_dev)) { hwmon_dev 1838 drivers/hwmon/w83793.c err = PTR_ERR(data->hwmon_dev); hwmon_dev 1915 drivers/hwmon/w83793.c hwmon_device_unregister(data->hwmon_dev); hwmon_dev 321 drivers/hwmon/w83795.c struct device *hwmon_dev; hwmon_dev 2224 drivers/hwmon/w83795.c data->hwmon_dev = hwmon_device_register(dev); hwmon_dev 2225 drivers/hwmon/w83795.c if (IS_ERR(data->hwmon_dev)) { hwmon_dev 2226 drivers/hwmon/w83795.c err = PTR_ERR(data->hwmon_dev); hwmon_dev 2241 drivers/hwmon/w83795.c hwmon_device_unregister(data->hwmon_dev); hwmon_dev 100 drivers/hwmon/w83l785ts.c struct device *hwmon_dev; hwmon_dev 194 drivers/hwmon/w83l785ts.c data->hwmon_dev = hwmon_device_register(dev); hwmon_dev 195 drivers/hwmon/w83l785ts.c if (IS_ERR(data->hwmon_dev)) { hwmon_dev 196 drivers/hwmon/w83l785ts.c err = PTR_ERR(data->hwmon_dev); hwmon_dev 212 drivers/hwmon/w83l785ts.c hwmon_device_unregister(data->hwmon_dev); hwmon_dev 713 drivers/hwmon/w83l786ng.c struct device *hwmon_dev; hwmon_dev 738 drivers/hwmon/w83l786ng.c hwmon_dev = devm_hwmon_device_register_with_groups(dev, client->name, hwmon_dev 741 drivers/hwmon/w83l786ng.c return PTR_ERR_OR_ZERO(hwmon_dev); hwmon_dev 133 drivers/hwmon/wm831x-hwmon.c struct device *hwmon_dev; hwmon_dev 135 drivers/hwmon/wm831x-hwmon.c hwmon_dev = devm_hwmon_device_register_with_groups(&pdev->dev, "wm831x", hwmon_dev 138 drivers/hwmon/wm831x-hwmon.c return PTR_ERR_OR_ZERO(hwmon_dev); hwmon_dev 72 drivers/hwmon/wm8350-hwmon.c struct device *hwmon_dev; hwmon_dev 74 drivers/hwmon/wm8350-hwmon.c hwmon_dev = devm_hwmon_device_register_with_groups(&pdev->dev, "wm8350", hwmon_dev 77 drivers/hwmon/wm8350-hwmon.c return PTR_ERR_OR_ZERO(hwmon_dev); hwmon_dev 108 drivers/hwmon/xgene-hwmon.c struct device *hwmon_dev; hwmon_dev 464 drivers/hwmon/xgene-hwmon.c if (IS_ERR_OR_NULL(ctx->hwmon_dev) && !ctx->resp_pending) { hwmon_dev 737 drivers/hwmon/xgene-hwmon.c ctx->hwmon_dev = hwmon_device_register_with_groups(ctx->dev, hwmon_dev 741 drivers/hwmon/xgene-hwmon.c if (IS_ERR(ctx->hwmon_dev)) { hwmon_dev 743 drivers/hwmon/xgene-hwmon.c rc = PTR_ERR(ctx->hwmon_dev); hwmon_dev 771 drivers/hwmon/xgene-hwmon.c hwmon_device_unregister(ctx->hwmon_dev); hwmon_dev 1290 drivers/misc/habanalabs/habanalabs.h struct device *hwmon_dev; hwmon_dev 433 drivers/misc/habanalabs/hwmon.c hdev->hwmon_dev = hwmon_device_register_with_info(dev, hwmon_dev 436 drivers/misc/habanalabs/hwmon.c if (IS_ERR(hdev->hwmon_dev)) { hwmon_dev 437 drivers/misc/habanalabs/hwmon.c rc = PTR_ERR(hdev->hwmon_dev); hwmon_dev 444 drivers/misc/habanalabs/hwmon.c dev_name(hdev->hwmon_dev)); hwmon_dev 459 drivers/misc/habanalabs/hwmon.c hwmon_device_unregister(hdev->hwmon_dev); hwmon_dev 113 drivers/net/ethernet/aquantia/atlantic/aq_drvinfo.c struct device *hwmon_dev; hwmon_dev 116 drivers/net/ethernet/aquantia/atlantic/aq_drvinfo.c hwmon_dev = devm_hwmon_device_register_with_info(dev, hwmon_dev 122 drivers/net/ethernet/aquantia/atlantic/aq_drvinfo.c if (IS_ERR(hwmon_dev)) hwmon_dev 123 drivers/net/ethernet/aquantia/atlantic/aq_drvinfo.c err = PTR_ERR(hwmon_dev); hwmon_dev 8949 drivers/net/ethernet/broadcom/bnxt/bnxt.c if (bp->hwmon_dev) { hwmon_dev 8950 drivers/net/ethernet/broadcom/bnxt/bnxt.c hwmon_device_unregister(bp->hwmon_dev); hwmon_dev 8951 drivers/net/ethernet/broadcom/bnxt/bnxt.c bp->hwmon_dev = NULL; hwmon_dev 8959 drivers/net/ethernet/broadcom/bnxt/bnxt.c if (bp->hwmon_dev) hwmon_dev 8962 drivers/net/ethernet/broadcom/bnxt/bnxt.c bp->hwmon_dev = hwmon_device_register_with_groups(&pdev->dev, hwmon_dev 8965 drivers/net/ethernet/broadcom/bnxt/bnxt.c if (IS_ERR(bp->hwmon_dev)) { hwmon_dev 8966 drivers/net/ethernet/broadcom/bnxt/bnxt.c bp->hwmon_dev = NULL; hwmon_dev 1821 drivers/net/ethernet/broadcom/bnxt/bnxt.h struct device *hwmon_dev; hwmon_dev 10855 drivers/net/ethernet/broadcom/tg3.c if (tp->hwmon_dev) { hwmon_dev 10856 drivers/net/ethernet/broadcom/tg3.c hwmon_device_unregister(tp->hwmon_dev); hwmon_dev 10857 drivers/net/ethernet/broadcom/tg3.c tp->hwmon_dev = NULL; hwmon_dev 10881 drivers/net/ethernet/broadcom/tg3.c tp->hwmon_dev = hwmon_device_register_with_groups(&pdev->dev, "tg3", hwmon_dev 10883 drivers/net/ethernet/broadcom/tg3.c if (IS_ERR(tp->hwmon_dev)) { hwmon_dev 10884 drivers/net/ethernet/broadcom/tg3.c tp->hwmon_dev = NULL; hwmon_dev 3426 drivers/net/ethernet/broadcom/tg3.h struct device *hwmon_dev; hwmon_dev 443 drivers/net/ethernet/emulex/benet/be.h struct device *hwmon_dev; hwmon_dev 6013 drivers/net/ethernet/emulex/benet/be_main.c adapter->hwmon_info.hwmon_dev = hwmon_dev 156 drivers/net/ethernet/intel/igb/igb_hwmon.c struct device *hwmon_dev; hwmon_dev 213 drivers/net/ethernet/intel/igb/igb_hwmon.c hwmon_dev = devm_hwmon_device_register_with_groups(&adapter->pdev->dev, hwmon_dev 217 drivers/net/ethernet/intel/igb/igb_hwmon.c if (IS_ERR(hwmon_dev)) { hwmon_dev 218 drivers/net/ethernet/intel/igb/igb_hwmon.c rc = PTR_ERR(hwmon_dev); hwmon_dev 149 drivers/net/ethernet/intel/ixgbe/ixgbe_sysfs.c struct device *hwmon_dev; hwmon_dev 196 drivers/net/ethernet/intel/ixgbe/ixgbe_sysfs.c hwmon_dev = devm_hwmon_device_register_with_groups(&adapter->pdev->dev, hwmon_dev 200 drivers/net/ethernet/intel/ixgbe/ixgbe_sysfs.c if (IS_ERR(hwmon_dev)) hwmon_dev 201 drivers/net/ethernet/intel/ixgbe/ixgbe_sysfs.c rc = PTR_ERR(hwmon_dev); hwmon_dev 37 drivers/net/ethernet/mellanox/mlxsw/core_hwmon.c struct device *hwmon_dev; hwmon_dev 632 drivers/net/ethernet/mellanox/mlxsw/core_hwmon.c struct device *hwmon_dev; hwmon_dev 660 drivers/net/ethernet/mellanox/mlxsw/core_hwmon.c hwmon_dev = hwmon_device_register_with_groups(mlxsw_bus_info->dev, hwmon_dev 663 drivers/net/ethernet/mellanox/mlxsw/core_hwmon.c if (IS_ERR(hwmon_dev)) { hwmon_dev 664 drivers/net/ethernet/mellanox/mlxsw/core_hwmon.c err = PTR_ERR(hwmon_dev); hwmon_dev 668 drivers/net/ethernet/mellanox/mlxsw/core_hwmon.c mlxsw_hwmon->hwmon_dev = hwmon_dev; hwmon_dev 683 drivers/net/ethernet/mellanox/mlxsw/core_hwmon.c hwmon_device_unregister(mlxsw_hwmon->hwmon_dev); hwmon_dev 150 drivers/net/ethernet/netronome/nfp/nfp_hwmon.c pf->hwmon_dev = hwmon_device_register_with_info(&pf->pdev->dev, "nfp", hwmon_dev 153 drivers/net/ethernet/netronome/nfp/nfp_hwmon.c return PTR_ERR_OR_ZERO(pf->hwmon_dev); hwmon_dev 158 drivers/net/ethernet/netronome/nfp/nfp_hwmon.c if (!IS_REACHABLE(CONFIG_HWMON) || !pf->hwmon_dev) hwmon_dev 161 drivers/net/ethernet/netronome/nfp/nfp_hwmon.c hwmon_device_unregister(pf->hwmon_dev); hwmon_dev 127 drivers/net/ethernet/netronome/nfp/nfp_main.h struct device *hwmon_dev; hwmon_dev 541 drivers/net/ethernet/qlogic/qlcnic/qlcnic.h struct device *hwmon_dev; hwmon_dev 1294 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sysfs.c struct device *hwmon_dev; hwmon_dev 1298 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sysfs.c adapter->ahw->hwmon_dev = NULL; hwmon_dev 1301 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sysfs.c hwmon_dev = hwmon_device_register_with_groups(dev, qlcnic_driver_name, hwmon_dev 1304 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sysfs.c if (IS_ERR(hwmon_dev)) { hwmon_dev 1306 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sysfs.c PTR_ERR(hwmon_dev)); hwmon_dev 1307 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sysfs.c hwmon_dev = NULL; hwmon_dev 1309 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sysfs.c adapter->ahw->hwmon_dev = hwmon_dev; hwmon_dev 1314 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sysfs.c struct device *hwmon_dev = adapter->ahw->hwmon_dev; hwmon_dev 1315 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sysfs.c if (hwmon_dev) { hwmon_dev 1316 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sysfs.c hwmon_device_unregister(hwmon_dev); hwmon_dev 1317 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sysfs.c adapter->ahw->hwmon_dev = NULL; hwmon_dev 227 drivers/net/phy/aquantia_hwmon.c struct device *hwmon_dev; hwmon_dev 244 drivers/net/phy/aquantia_hwmon.c hwmon_dev = devm_hwmon_device_register_with_info(dev, hwmon_name, hwmon_dev 247 drivers/net/phy/aquantia_hwmon.c return PTR_ERR_OR_ZERO(hwmon_dev); hwmon_dev 194 drivers/net/phy/marvell.c struct device *hwmon_dev; hwmon_dev 2047 drivers/net/phy/marvell.c priv->hwmon_dev = devm_hwmon_device_register_with_info( hwmon_dev 2050 drivers/net/phy/marvell.c return PTR_ERR_OR_ZERO(priv->hwmon_dev); hwmon_dev 65 drivers/net/phy/marvell10g.c struct device *hwmon_dev; hwmon_dev 191 drivers/net/phy/marvell10g.c priv->hwmon_dev = devm_hwmon_device_register_with_info(dev, hwmon_dev 195 drivers/net/phy/marvell10g.c return PTR_ERR_OR_ZERO(priv->hwmon_dev); hwmon_dev 54 drivers/net/phy/nxp-tja11xx.c struct device *hwmon_dev; hwmon_dev 348 drivers/net/phy/nxp-tja11xx.c priv->hwmon_dev = hwmon_dev 354 drivers/net/phy/nxp-tja11xx.c return PTR_ERR_OR_ZERO(priv->hwmon_dev); hwmon_dev 204 drivers/net/phy/sfp.c struct device *hwmon_dev; hwmon_dev 1173 drivers/net/phy/sfp.c sfp->hwmon_dev = hwmon_device_register_with_info(sfp->dev, hwmon_dev 1178 drivers/net/phy/sfp.c return PTR_ERR_OR_ZERO(sfp->hwmon_dev); hwmon_dev 1183 drivers/net/phy/sfp.c if (!IS_ERR_OR_NULL(sfp->hwmon_dev)) { hwmon_dev 1184 drivers/net/phy/sfp.c hwmon_device_unregister(sfp->hwmon_dev); hwmon_dev 1185 drivers/net/phy/sfp.c sfp->hwmon_dev = NULL; hwmon_dev 157 drivers/net/wireless/ath/ath10k/thermal.c struct device *hwmon_dev; hwmon_dev 194 drivers/net/wireless/ath/ath10k/thermal.c hwmon_dev = devm_hwmon_device_register_with_groups(ar->dev, hwmon_dev 197 drivers/net/wireless/ath/ath10k/thermal.c if (IS_ERR(hwmon_dev)) { hwmon_dev 199 drivers/net/wireless/ath/ath10k/thermal.c PTR_ERR(hwmon_dev)); hwmon_dev 1037 drivers/platform/x86/compal-laptop.c struct device *hwmon_dev; hwmon_dev 1054 drivers/platform/x86/compal-laptop.c hwmon_dev = devm_hwmon_device_register_with_groups(&pdev->dev, hwmon_dev 1057 drivers/platform/x86/compal-laptop.c if (IS_ERR(hwmon_dev)) { hwmon_dev 1058 drivers/platform/x86/compal-laptop.c err = PTR_ERR(hwmon_dev); hwmon_dev 78 drivers/rtc/rtc-ab-eoz9.c struct device *hwmon_dev; hwmon_dev 362 drivers/rtc/rtc-ab-eoz9.c data->hwmon_dev = hwmon_dev 368 drivers/rtc/rtc-ab-eoz9.c if (IS_ERR(data->hwmon_dev)) { hwmon_dev 370 drivers/rtc/rtc-ab-eoz9.c PTR_ERR(data->hwmon_dev)); hwmon_dev 381 drivers/rtc/rtc-ds3232.c struct device *hwmon_dev; hwmon_dev 386 drivers/rtc/rtc-ds3232.c hwmon_dev = devm_hwmon_device_register_with_info(dev, name, ds3232, hwmon_dev 389 drivers/rtc/rtc-ds3232.c if (IS_ERR(hwmon_dev)) { hwmon_dev 391 drivers/rtc/rtc-ds3232.c PTR_ERR(hwmon_dev)); hwmon_dev 767 drivers/rtc/rtc-rv3029c2.c struct device *hwmon_dev; hwmon_dev 769 drivers/rtc/rtc-rv3029c2.c hwmon_dev = devm_hwmon_device_register_with_groups(dev, name, rv3029, hwmon_dev 771 drivers/rtc/rtc-rv3029c2.c if (IS_ERR(hwmon_dev)) { hwmon_dev 773 drivers/rtc/rtc-rv3029c2.c PTR_ERR(hwmon_dev));