Searched refs:tcdev (Results 1 – 2 of 2) sorted by relevance
176 struct thermal_cooling_device *tcdev; member785 aspeed_pwm_cz_get_max_state(struct thermal_cooling_device *tcdev, in aspeed_pwm_cz_get_max_state() argument788 struct aspeed_cooling_device *cdev = tcdev->devdata; in aspeed_pwm_cz_get_max_state()796 aspeed_pwm_cz_get_cur_state(struct thermal_cooling_device *tcdev, in aspeed_pwm_cz_get_cur_state() argument799 struct aspeed_cooling_device *cdev = tcdev->devdata; in aspeed_pwm_cz_get_cur_state()807 aspeed_pwm_cz_set_cur_state(struct thermal_cooling_device *tcdev, in aspeed_pwm_cz_set_cur_state() argument810 struct aspeed_cooling_device *cdev = tcdev->devdata; in aspeed_pwm_cz_set_cur_state()857 cdev->tcdev = thermal_of_cooling_device_register(child, in aspeed_create_pwm_cooling()861 if (IS_ERR(cdev->tcdev)) in aspeed_create_pwm_cooling()862 return PTR_ERR(cdev->tcdev); in aspeed_create_pwm_cooling()
184 struct thermal_cooling_device *tcdev; member796 npcm7xx_pwm_cz_get_max_state(struct thermal_cooling_device *tcdev, in npcm7xx_pwm_cz_get_max_state() argument799 struct npcm7xx_cooling_device *cdev = tcdev->devdata; in npcm7xx_pwm_cz_get_max_state()807 npcm7xx_pwm_cz_get_cur_state(struct thermal_cooling_device *tcdev, in npcm7xx_pwm_cz_get_cur_state() argument810 struct npcm7xx_cooling_device *cdev = tcdev->devdata; in npcm7xx_pwm_cz_get_cur_state()818 npcm7xx_pwm_cz_set_cur_state(struct thermal_cooling_device *tcdev, in npcm7xx_pwm_cz_set_cur_state() argument821 struct npcm7xx_cooling_device *cdev = tcdev->devdata; in npcm7xx_pwm_cz_set_cur_state()867 cdev->tcdev = thermal_of_cooling_device_register(child, in npcm7xx_create_pwm_cooling()871 if (IS_ERR(cdev->tcdev)) in npcm7xx_create_pwm_cooling()872 return PTR_ERR(cdev->tcdev); in npcm7xx_create_pwm_cooling()