amlogic_thermal.c (5f68d0785e5258ab5e6df9e351929973a0742c1a) | amlogic_thermal.c (4a16c190f761cb3a87dcbbf355f91c71ce1f8c0b) |
---|---|
1// SPDX-License-Identifier: GPL-2.0+ 2/* 3 * Amlogic Thermal Sensor Driver 4 * 5 * Copyright (C) 2017 Huan Biao <huan.biao@amlogic.com> 6 * Copyright (C) 2019 Guillaume La Roque <glaroque@baylibre.com> 7 * 8 * Register value to celsius temperature formulas: --- 271 unchanged lines hidden (view full) --- 280 pdata, 281 &amlogic_thermal_ops); 282 if (IS_ERR(pdata->tzd)) { 283 ret = PTR_ERR(pdata->tzd); 284 dev_err(dev, "Failed to register tsensor: %d\n", ret); 285 return ret; 286 } 287 | 1// SPDX-License-Identifier: GPL-2.0+ 2/* 3 * Amlogic Thermal Sensor Driver 4 * 5 * Copyright (C) 2017 Huan Biao <huan.biao@amlogic.com> 6 * Copyright (C) 2019 Guillaume La Roque <glaroque@baylibre.com> 7 * 8 * Register value to celsius temperature formulas: --- 271 unchanged lines hidden (view full) --- 280 pdata, 281 &amlogic_thermal_ops); 282 if (IS_ERR(pdata->tzd)) { 283 ret = PTR_ERR(pdata->tzd); 284 dev_err(dev, "Failed to register tsensor: %d\n", ret); 285 return ret; 286 } 287 |
288 if (devm_thermal_add_hwmon_sysfs(pdata->tzd)) | 288 if (devm_thermal_add_hwmon_sysfs(&pdev->dev, pdata->tzd)) |
289 dev_warn(&pdev->dev, "Failed to add hwmon sysfs attributes\n"); 290 291 ret = amlogic_thermal_initialize(pdata); 292 if (ret) 293 return ret; 294 295 ret = amlogic_thermal_enable(pdata); 296 --- 42 unchanged lines hidden --- | 289 dev_warn(&pdev->dev, "Failed to add hwmon sysfs attributes\n"); 290 291 ret = amlogic_thermal_initialize(pdata); 292 if (ret) 293 return ret; 294 295 ret = amlogic_thermal_enable(pdata); 296 --- 42 unchanged lines hidden --- |