Searched refs:tcdev (Results 1 – 2 of 2) sorted by relevance
/Linux-v5.15/drivers/hwmon/ |
D | aspeed-pwm-tacho.c | 173 struct thermal_cooling_device *tcdev; member 758 aspeed_pwm_cz_get_max_state(struct thermal_cooling_device *tcdev, in aspeed_pwm_cz_get_max_state() argument 761 struct aspeed_cooling_device *cdev = tcdev->devdata; in aspeed_pwm_cz_get_max_state() 769 aspeed_pwm_cz_get_cur_state(struct thermal_cooling_device *tcdev, in aspeed_pwm_cz_get_cur_state() argument 772 struct aspeed_cooling_device *cdev = tcdev->devdata; in aspeed_pwm_cz_get_cur_state() 780 aspeed_pwm_cz_set_cur_state(struct thermal_cooling_device *tcdev, in aspeed_pwm_cz_set_cur_state() argument 783 struct aspeed_cooling_device *cdev = tcdev->devdata; in aspeed_pwm_cz_set_cur_state() 830 cdev->tcdev = devm_thermal_of_cooling_device_register(dev, child, in aspeed_create_pwm_cooling() 832 if (IS_ERR(cdev->tcdev)) in aspeed_create_pwm_cooling() 833 return PTR_ERR(cdev->tcdev); in aspeed_create_pwm_cooling()
|
D | npcm750-pwm-fan.c | 184 struct thermal_cooling_device *tcdev; member 778 npcm7xx_pwm_cz_get_max_state(struct thermal_cooling_device *tcdev, in npcm7xx_pwm_cz_get_max_state() argument 781 struct npcm7xx_cooling_device *cdev = tcdev->devdata; in npcm7xx_pwm_cz_get_max_state() 789 npcm7xx_pwm_cz_get_cur_state(struct thermal_cooling_device *tcdev, in npcm7xx_pwm_cz_get_cur_state() argument 792 struct npcm7xx_cooling_device *cdev = tcdev->devdata; in npcm7xx_pwm_cz_get_cur_state() 800 npcm7xx_pwm_cz_set_cur_state(struct thermal_cooling_device *tcdev, in npcm7xx_pwm_cz_set_cur_state() argument 803 struct npcm7xx_cooling_device *cdev = tcdev->devdata; in npcm7xx_pwm_cz_set_cur_state() 849 cdev->tcdev = devm_thermal_of_cooling_device_register(dev, child, in npcm7xx_create_pwm_cooling() 851 if (IS_ERR(cdev->tcdev)) in npcm7xx_create_pwm_cooling() 852 return PTR_ERR(cdev->tcdev); in npcm7xx_create_pwm_cooling()
|