[groeck-staging:hwmon-next 15/25] drivers/hwmon/pmbus/mpq8785.c:81:10: error: 'struct i2c_driver' has no member named 'probe_new'

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



tree:   https://git.kernel.org/pub/scm/linux/kernel/git/groeck/linux-staging.git hwmon-next
head:   efba2dfc184bb0ec9fd22caa8d6b1a768973debe
commit: 3b3b35e1f9a0a5bf281161708811a5df8f67b392 [15/25] hwmon: Add driver for MPS MPQ8785 Synchronous Step-Down Converter
config: m68k-allmodconfig (https://download.01.org/0day-ci/archive/20240203/202402031017.zrY0cnpR-lkp@xxxxxxxxx/config)
compiler: m68k-linux-gcc (GCC) 13.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240203/202402031017.zrY0cnpR-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/202402031017.zrY0cnpR-lkp@xxxxxxxxx/

All errors (new ones prefixed by >>):

>> drivers/hwmon/pmbus/mpq8785.c:81:10: error: 'struct i2c_driver' has no member named 'probe_new'
      81 |         .probe_new = mpq8785_probe,
         |          ^~~~~~~~~
>> drivers/hwmon/pmbus/mpq8785.c:81:22: error: initialization of 'const struct i2c_device_id *' from incompatible pointer type 'int (*)(struct i2c_client *)' [-Werror=incompatible-pointer-types]
      81 |         .probe_new = mpq8785_probe,
         |                      ^~~~~~~~~~~~~
   drivers/hwmon/pmbus/mpq8785.c:81:22: note: (near initialization for 'mpq8785_driver.id_table')
   drivers/hwmon/pmbus/mpq8785.c:82:21: warning: initialized field overwritten [-Woverride-init]
      82 |         .id_table = mpq8785_id,
         |                     ^~~~~~~~~~
   drivers/hwmon/pmbus/mpq8785.c:82:21: note: (near initialization for 'mpq8785_driver.id_table')
   cc1: some warnings being treated as errors


vim +81 drivers/hwmon/pmbus/mpq8785.c

    75	
    76	static struct i2c_driver mpq8785_driver = {
    77		.driver = {
    78			   .name = "mpq8785",
    79			   .of_match_table = of_match_ptr(mpq8785_of_match),
    80		},
  > 81		.probe_new = mpq8785_probe,
    82		.id_table = mpq8785_id,
    83	};
    84	

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




[Index of Archives]     [LM Sensors]     [Linux Sound]     [ALSA Users]     [ALSA Devel]     [Linux Audio Users]     [Linux Media]     [Kernel]     [Gimp]     [Yosemite News]     [Linux Media]

  Powered by Linux