mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-08 20:07:46 +09:00
thermal: add thermal meson cooldev point check
PD#170391: thermal: add thermal meson cooldev point check. Change-Id: I9aa705a764399670583cb51e0dc8b743ec80fd54 Signed-off-by: Huan Biao <huan.biao@amlogic.com>
This commit is contained in:
@@ -212,13 +212,13 @@ int meson_cooldev_min_update(struct platform_device *pdev, int index)
|
||||
int ret;
|
||||
int cpu, c_id;
|
||||
|
||||
cool = get_cool_dev_by_node(pdev, cdev->np);
|
||||
if (!cool)
|
||||
return -ENODEV;
|
||||
|
||||
if (!cdev)
|
||||
return -ENODEV;
|
||||
|
||||
cool = get_cool_dev_by_node(pdev, cdev->np);
|
||||
if (!cool)
|
||||
return -ENODEV;
|
||||
if (cool->min_state == 0)
|
||||
return 0;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user