Lines Matching refs:rc

37 	int rc;  in tps65217_bl_enable()  local
39 rc = tps65217_set_bits(tps65217_bl->tps, TPS65217_REG_WLEDCTRL1, in tps65217_bl_enable()
42 if (rc) { in tps65217_bl_enable()
44 "failed to enable backlight: %d\n", rc); in tps65217_bl_enable()
45 return rc; in tps65217_bl_enable()
57 int rc; in tps65217_bl_disable() local
59 rc = tps65217_clear_bits(tps65217_bl->tps, in tps65217_bl_disable()
63 if (rc) { in tps65217_bl_disable()
65 "failed to disable backlight: %d\n", rc); in tps65217_bl_disable()
66 return rc; in tps65217_bl_disable()
79 int rc; in tps65217_bl_update_status() local
91 rc = tps65217_reg_write(tps65217_bl->tps, in tps65217_bl_update_status()
95 if (rc) { in tps65217_bl_update_status()
97 "failed to set brightness level: %d\n", rc); in tps65217_bl_update_status()
98 return rc; in tps65217_bl_update_status()
104 rc = tps65217_bl_enable(tps65217_bl); in tps65217_bl_update_status()
106 rc = tps65217_bl_disable(tps65217_bl); in tps65217_bl_update_status()
109 return rc; in tps65217_bl_update_status()
120 int rc; in tps65217_bl_hw_init() local
122 rc = tps65217_bl_disable(tps65217_bl); in tps65217_bl_hw_init()
123 if (rc) in tps65217_bl_hw_init()
124 return rc; in tps65217_bl_hw_init()
129 rc = tps65217_clear_bits(tps65217_bl->tps, in tps65217_bl_hw_init()
133 if (rc) { in tps65217_bl_hw_init()
136 rc); in tps65217_bl_hw_init()
137 return rc; in tps65217_bl_hw_init()
146 rc = tps65217_set_bits(tps65217_bl->tps, TPS65217_REG_WLEDCTRL1, in tps65217_bl_hw_init()
149 if (rc) { in tps65217_bl_hw_init()
152 rc); in tps65217_bl_hw_init()
153 return rc; in tps65217_bl_hw_init()
167 rc = tps65217_set_bits(tps65217_bl->tps, in tps65217_bl_hw_init()
172 if (rc) { in tps65217_bl_hw_init()
175 rc); in tps65217_bl_hw_init()
176 return rc; in tps65217_bl_hw_init()
272 int rc; in tps65217_bl_probe() local
299 rc = tps65217_bl_hw_init(tps65217_bl, pdata); in tps65217_bl_probe()
300 if (rc) in tps65217_bl_probe()
301 return rc; in tps65217_bl_probe()
312 "registration of backlight device failed: %d\n", rc); in tps65217_bl_probe()