Re: [PATCH v2 2/2] leds: ltc3220: Add Support for LTC3220 18 channel LED Driver

From: kernel test robot

Date: Mon Jan 12 2026 - 11:38:38 EST


Hi Edelweise,

kernel test robot noticed the following build warnings:

[auto build test WARNING on 8856d7fe1758937ac528770f552ec58c388c255b]

url: https://github.com/intel-lab-lkp/linux/commits/Edelweise-Escala/dt-bindings-leds-Add-LTC3220-18-channel-LED-Driver/20260112-170223
base: 8856d7fe1758937ac528770f552ec58c388c255b
patch link: https://lore.kernel.org/r/20260112-ltc3220-driver-v2-2-d043058fc4df%40analog.com
patch subject: [PATCH v2 2/2] leds: ltc3220: Add Support for LTC3220 18 channel LED Driver
config: sh-allmodconfig (https://download.01.org/0day-ci/archive/20260112/202601122335.DZgiMBky-lkp@xxxxxxxxx/config)
compiler: sh4-linux-gcc (GCC) 15.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260112/202601122335.DZgiMBky-lkp@xxxxxxxxx/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@xxxxxxxxx>
| Closes: https://lore.kernel.org/oe-kbuild-all/202601122335.DZgiMBky-lkp@xxxxxxxxx/

All warnings (new ones prefixed by >>):

>> drivers/leds/leds-ltc3220.c:348:12: warning: 'ltc3220_resume' defined but not used [-Wunused-function]
348 | static int ltc3220_resume(struct device *dev)
| ^~~~~~~~~~~~~~
>> drivers/leds/leds-ltc3220.c:340:12: warning: 'ltc3220_suspend' defined but not used [-Wunused-function]
340 | static int ltc3220_suspend(struct device *dev)
| ^~~~~~~~~~~~~~~


vim +/ltc3220_resume +348 drivers/leds/leds-ltc3220.c

339
> 340 static int ltc3220_suspend(struct device *dev)
341 {
342 struct i2c_client *client = to_i2c_client(dev);
343 struct ltc3220_state *ltc3220_state = i2c_get_clientdata(client);
344
345 return ltc3220_shutdown(ltc3220_state);
346 }
347
> 348 static int ltc3220_resume(struct device *dev)
349 {
350 struct i2c_client *client = to_i2c_client(dev);
351 struct ltc3220_state *ltc3220_state = i2c_get_clientdata(client);
352
353 return ltc3220_resume_from_shutdown(ltc3220_state);
354 }
355

--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki