File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -245,8 +245,8 @@ static ssize_t lp5523_selftest(struct device *dev,
245
245
goto fail ;
246
246
247
247
if (adc >= vdd || adc < LP5523_ADC_SHORTCIRC_LIM )
248
- pos += sprintf (buf + pos , "LED %d FAIL\n" ,
249
- led -> chan_nr );
248
+ pos += sysfs_emit_at (buf , pos , "LED %d FAIL\n" ,
249
+ led -> chan_nr );
250
250
251
251
lp55xx_write (chip , LP5523_REG_LED_PWM_BASE + led -> chan_nr ,
252
252
0x00 );
@@ -257,10 +257,10 @@ static ssize_t lp5523_selftest(struct device *dev,
257
257
led ++ ;
258
258
}
259
259
if (pos == 0 )
260
- pos = sprintf (buf , "OK\n" );
260
+ pos = sysfs_emit (buf , "OK\n" );
261
261
goto release_lock ;
262
262
fail :
263
- pos = sprintf (buf , "FAIL\n" );
263
+ pos = sysfs_emit (buf , "FAIL\n" );
264
264
265
265
release_lock :
266
266
mutex_unlock (& chip -> lock );
You can’t perform that action at this time.
0 commit comments