openwrt/target/linux/ramips/files/drivers
Nick Hainke 3358045d1d ramips: 6.1: pinctrl: fix compilation with 6.1
Upstream changed in ed5c2f5fd10d ("i2c: Make remove callback return void")
the i2c driver's remove function to return no value. Adapt the driver code
to compile with 5.15 and 6.1 like it is done in other projects [0].

Fixes errors in the form of:
  make[8]: Leaving directory '/home/nick/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7621/linux-6.1.29'
    CC      drivers/pinctrl/pinctrl-aw9523.o
  drivers/pinctrl/pinctrl-aw9523.c:1117:19: error: initialization of 'void (*)(struct i2c_client *)' from incompatible pointer type 'int (*)(struct i2c_client *)' [-Werror=incompatible-pointer-types]
 1117 |         .remove = aw9523_remove,
      |                   ^~~~~~~~~~~~~
  drivers/pinctrl/pinctrl-aw9523.c:1117:19: note: (near initialization for 'aw9523_driver.remove')
  cc1: all warnings being treated as errors

[0] - https://gitlab.com/ddcci-driver-linux/ddcci-driver-linux/-/merge_requests/10/diffs

Signed-off-by: Nick Hainke <vincent@systemli.org>
2024-02-10 13:06:05 +01:00
..
dma/mediatek ramips: 6.1: mt7621-dma: apply dma handle error from device_reset patch 2024-02-10 13:06:05 +01:00
mmc/host/mtk-mmc ramips: mtk-mcc: move cmd_buf for dbg under ifdef 2023-05-12 03:15:38 +02:00
mtd/nand/raw ramips: correct page read return value of the mt7621 nand driver 2023-05-22 14:45:03 +02:00
net/ethernet/ralink ramips: reset mt7620 ethernet phy via reset controller 2024-01-06 14:24:13 +01:00
pinctrl ramips: 6.1: pinctrl: fix compilation with 6.1 2024-02-10 13:06:05 +01:00