Lines Matching refs:reg_en
28 struct regulator *reg_en; member
307 ctx->reg_en = devm_regulator_get_optional(dev, "fan"); in pwm_fan_probe()
308 if (IS_ERR(ctx->reg_en)) { in pwm_fan_probe()
309 if (PTR_ERR(ctx->reg_en) != -ENODEV) in pwm_fan_probe()
310 return PTR_ERR(ctx->reg_en); in pwm_fan_probe()
312 ctx->reg_en = NULL; in pwm_fan_probe()
314 ret = regulator_enable(ctx->reg_en); in pwm_fan_probe()
320 ctx->reg_en); in pwm_fan_probe()
405 if (ctx->reg_en) { in pwm_fan_disable()
406 ret = regulator_disable(ctx->reg_en); in pwm_fan_disable()
434 if (ctx->reg_en) { in pwm_fan_resume()
435 ret = regulator_enable(ctx->reg_en); in pwm_fan_resume()