@@ -129,8 +129,8 @@ extern int max17616_iio_write_global_attr(void *device, char *buf, uint32_t len,
129129
130130/* Mock callback for telemetry reading */
131131static int mock_read_telemetry_all_callback (struct max17616_dev * dev ,
132- struct max17616_telemetry * telemetry ,
133- int num_calls )
132+ struct max17616_telemetry * telemetry ,
133+ int num_calls )
134134{
135135 if (telemetry && dev ) {
136136 * telemetry = test_telemetry ;
@@ -141,8 +141,8 @@ static int mock_read_telemetry_all_callback(struct max17616_dev *dev,
141141
142142/* Mock callback for status reading */
143143static int mock_read_status_callback (struct max17616_dev * dev ,
144- struct max17616_status * status ,
145- int num_calls )
144+ struct max17616_status * status ,
145+ int num_calls )
146146{
147147 if (status && dev ) {
148148 * status = test_status ;
@@ -159,7 +159,8 @@ static uint8_t mock_status_temp = 0;
159159static uint8_t mock_status_cml = 0 ;
160160static uint8_t mock_status_mfr = 0 ;
161161
162- static int mock_read_status_vout_callback (struct max17616_dev * dev , uint8_t * status_vout , int num_calls )
162+ static int mock_read_status_vout_callback (struct max17616_dev * dev ,
163+ uint8_t * status_vout , int num_calls )
163164{
164165 if (status_vout && dev ) {
165166 * status_vout = mock_status_vout ;
@@ -168,7 +169,8 @@ static int mock_read_status_vout_callback(struct max17616_dev *dev, uint8_t *sta
168169 return - EINVAL ;
169170}
170171
171- static int mock_read_status_iout_callback (struct max17616_dev * dev , uint8_t * status_iout , int num_calls )
172+ static int mock_read_status_iout_callback (struct max17616_dev * dev ,
173+ uint8_t * status_iout , int num_calls )
172174{
173175 if (status_iout && dev ) {
174176 * status_iout = mock_status_iout ;
@@ -177,7 +179,8 @@ static int mock_read_status_iout_callback(struct max17616_dev *dev, uint8_t *sta
177179 return - EINVAL ;
178180}
179181
180- static int mock_read_status_input_callback (struct max17616_dev * dev , uint8_t * status_input , int num_calls )
182+ static int mock_read_status_input_callback (struct max17616_dev * dev ,
183+ uint8_t * status_input , int num_calls )
181184{
182185 if (status_input && dev ) {
183186 * status_input = mock_status_input ;
@@ -186,7 +189,8 @@ static int mock_read_status_input_callback(struct max17616_dev *dev, uint8_t *st
186189 return - EINVAL ;
187190}
188191
189- static int mock_read_status_temperature_callback (struct max17616_dev * dev , uint8_t * status_temperature , int num_calls )
192+ static int mock_read_status_temperature_callback (struct max17616_dev * dev ,
193+ uint8_t * status_temperature , int num_calls )
190194{
191195 if (status_temperature && dev ) {
192196 * status_temperature = mock_status_temp ;
@@ -195,7 +199,8 @@ static int mock_read_status_temperature_callback(struct max17616_dev *dev, uint8
195199 return - EINVAL ;
196200}
197201
198- static int mock_read_status_cml_callback (struct max17616_dev * dev , uint8_t * status_cml , int num_calls )
202+ static int mock_read_status_cml_callback (struct max17616_dev * dev ,
203+ uint8_t * status_cml , int num_calls )
199204{
200205 if (status_cml && dev ) {
201206 * status_cml = mock_status_cml ;
@@ -204,7 +209,9 @@ static int mock_read_status_cml_callback(struct max17616_dev *dev, uint8_t *stat
204209 return - EINVAL ;
205210}
206211
207- static int mock_read_status_mfr_specific_callback (struct max17616_dev * dev , uint8_t * status_mfr , int num_calls )
212+ static int mock_read_status_mfr_specific_callback (struct max17616_dev * dev ,
213+ uint8_t * status_mfr ,
214+ int num_calls )
208215{
209216 if (status_mfr && dev ) {
210217 * status_mfr = mock_status_mfr ;
@@ -221,7 +228,9 @@ static enum max17616_overcurrent_limit mock_istlim = MAX17616_OC_LIMIT_1_25;
221228static enum max17616_nominal_voltage mock_nominal_voltage = MAX17616_NOMINAL_5V ;
222229static enum max17616_pgood_threshold mock_pgood_threshold = MAX17616_PGOOD_MINUS_10_PERCENT ;
223230
224- static int mock_get_current_limit_mode_callback (struct max17616_dev * dev , enum max17616_current_limit_mode * clmode , int num_calls )
231+ static int mock_get_current_limit_mode_callback (struct max17616_dev * dev ,
232+ enum max17616_current_limit_mode * clmode ,
233+ int num_calls )
225234{
226235 if (clmode && dev ) {
227236 * clmode = mock_clmode ;
@@ -230,7 +239,9 @@ static int mock_get_current_limit_mode_callback(struct max17616_dev *dev, enum m
230239 return - EINVAL ;
231240}
232241
233- static int mock_get_istart_ratio_callback (struct max17616_dev * dev , enum max17616_istart_ratio * istart_ratio , int num_calls )
242+ static int mock_get_istart_ratio_callback (struct max17616_dev * dev ,
243+ enum max17616_istart_ratio * istart_ratio ,
244+ int num_calls )
234245{
235246 if (istart_ratio && dev ) {
236247 * istart_ratio = mock_istart_ratio ;
@@ -239,7 +250,9 @@ static int mock_get_istart_ratio_callback(struct max17616_dev *dev, enum max1761
239250 return - EINVAL ;
240251}
241252
242- static int mock_get_overcurrent_timeout_callback (struct max17616_dev * dev , enum max17616_overcurrent_timeout * timeout , int num_calls )
253+ static int mock_get_overcurrent_timeout_callback (struct max17616_dev * dev ,
254+ enum max17616_overcurrent_timeout * timeout ,
255+ int num_calls )
243256{
244257 if (timeout && dev ) {
245258 * timeout = mock_tstoc ;
@@ -248,7 +261,9 @@ static int mock_get_overcurrent_timeout_callback(struct max17616_dev *dev, enum
248261 return - EINVAL ;
249262}
250263
251- static int mock_get_overcurrent_limit_callback (struct max17616_dev * dev , enum max17616_overcurrent_limit * istlim , int num_calls )
264+ static int mock_get_overcurrent_limit_callback (struct max17616_dev * dev ,
265+ enum max17616_overcurrent_limit * istlim ,
266+ int num_calls )
252267{
253268 if (istlim && dev ) {
254269 * istlim = mock_istlim ;
@@ -274,7 +289,8 @@ static int mock_get_vout_uv_fault_limit_config_callback(struct max17616_dev *dev
274289static bool mock_operation_state = false;
275290static uint8_t mock_capability = 0 ;
276291
277- static int mock_get_operation_state_callback (struct max17616_dev * dev , bool * enabled , int num_calls )
292+ static int mock_get_operation_state_callback (struct max17616_dev * dev ,
293+ bool * enabled , int num_calls )
278294{
279295 if (enabled && dev ) {
280296 * enabled = mock_operation_state ;
@@ -283,7 +299,8 @@ static int mock_get_operation_state_callback(struct max17616_dev *dev, bool *ena
283299 return - EINVAL ;
284300}
285301
286- static int mock_read_capability_callback (struct max17616_dev * dev , uint8_t * capability , int num_calls )
302+ static int mock_read_capability_callback (struct max17616_dev * dev ,
303+ uint8_t * capability , int num_calls )
287304{
288305 if (capability && dev ) {
289306 * capability = mock_capability ;
0 commit comments