Lines Matching refs:rval
57 int rval; in adp1653_update_hw() local
80 rval = i2c_smbus_write_byte_data(client, ADP1653_REG_OUT_SEL, out_sel); in adp1653_update_hw()
81 if (rval < 0) in adp1653_update_hw()
82 return rval; in adp1653_update_hw()
84 rval = i2c_smbus_write_byte_data(client, ADP1653_REG_CONFIG, config); in adp1653_update_hw()
85 if (rval < 0) in adp1653_update_hw()
86 return rval; in adp1653_update_hw()
95 int rval; in adp1653_get_fault() local
107 rval = i2c_smbus_write_byte_data(client, ADP1653_REG_OUT_SEL, 0); in adp1653_get_fault()
108 if (rval < 0) in adp1653_get_fault()
109 return rval; in adp1653_get_fault()
113 rval = adp1653_update_hw(flash); in adp1653_get_fault()
114 if (rval) in adp1653_get_fault()
115 return rval; in adp1653_get_fault()
126 int rval; in adp1653_strobe() local
138 rval = i2c_smbus_write_byte_data(client, ADP1653_REG_OUT_SEL, out_sel); in adp1653_strobe()
139 if (rval) in adp1653_strobe()
140 return rval; in adp1653_strobe()
143 rval = i2c_smbus_write_byte_data(client, ADP1653_REG_SW_STROBE, in adp1653_strobe()
145 if (rval) in adp1653_strobe()
146 return rval; in adp1653_strobe()
158 int rval; in adp1653_get_ctrl() local
160 rval = adp1653_get_fault(flash); in adp1653_get_ctrl()
161 if (rval) in adp1653_get_ctrl()
162 return rval; in adp1653_get_ctrl()
184 int rval; in adp1653_set_ctrl() local
186 rval = adp1653_get_fault(flash); in adp1653_set_ctrl()
187 if (rval) in adp1653_set_ctrl()
188 return rval; in adp1653_set_ctrl()
189 if ((rval & (ADP1653_REG_FAULT_FLT_SCP | in adp1653_set_ctrl()
278 int rval; in adp1653_init_device() local
281 rval = i2c_smbus_write_byte_data(client, ADP1653_REG_OUT_SEL, 0); in adp1653_init_device()
282 if (rval < 0) { in adp1653_init_device()
290 rval = adp1653_get_fault(flash); in adp1653_init_device()
292 if (rval > 0) { in adp1653_init_device()
293 dev_err(&client->dev, "faults detected: 0x%1.1x\n", rval); in adp1653_init_device()
298 rval = adp1653_update_hw(flash); in adp1653_init_device()
300 if (rval) { in adp1653_init_device()