openwrt/target/linux/ramips
Nick Hainke eeeb0b5349 ramips: 6.1: pwm: rewrite mtk_pwm_ops to fix pwm driver
Upstream dropped support for legacy driver [0]. Rewrite the driver like
the renesas pwm driver [1].

Fixes erros in the form of:
   make: *** [/__w/openwrt/openwrt/openwrt/include/toplevel.mk:232: target/compile] Error 1
  ====== Make errors from logs/target/linux/compile.txt ======
        |                   ^~~~~~~~~~~~~~
  drivers/pwm/pwm-mediatek-ramips.c:107:19: note: (near initialization for 'mtk_pwm_ops.free')
  drivers/pwm/pwm-mediatek-ramips.c:108:10: error: 'const struct pwm_ops' has no member named 'disable'
    108 |         .disable = mtk_pwm_disable,
        |          ^~~~~~~
  drivers/pwm/pwm-mediatek-ramips.c:108:20: error: initialization of 'int (*)(struct pwm_chip *, struct pwm_device *, struct pwm_capture *, long unsigned int)' from incompatible pointer type 'void (*)(struct pwm_chip *, struct pwm_device *)' [-Werror=incompatible-pointer-types]
    108 |         .disable = mtk_pwm_disable,
        |                    ^~~~~~~~~~~~~~~
  drivers/pwm/pwm-mediatek-ramips.c:108:20: note: (near initialization for 'mtk_pwm_ops.capture')
  cc1: all warnings being treated as errors

[0] - 0829c35dc5
[1] - ec00cd5e63

Signed-off-by: Nick Hainke <vincent@systemli.org>
2024-02-10 13:06:05 +01:00
..
base-files/etc ramips: remove model name from LED labels 2020-10-02 14:51:57 +02:00
dts ramips: fix dts error in LED color/function conversion 2024-02-08 00:01:22 +01:00
files/drivers ramips: 6.1: pinctrl: fix compilation with 6.1 2024-02-10 13:06:05 +01:00
image ramips: mt76x8: add support for TP-Link RE365 v1 2024-01-10 20:56:06 +01:00
mt76x8 ramips: 6.1: copy config and patches 2024-02-10 13:06:05 +01:00
mt7620 ramips: 6.1: copy config and patches 2024-02-10 13:06:05 +01:00
mt7621 ramips: 6.1: copy config and patches 2024-02-10 13:06:05 +01:00
patches-5.15 kernel: bump 5.15 to 5.15.148 2024-02-01 21:36:00 +01:00
patches-6.1 ramips: 6.1: pwm: rewrite mtk_pwm_ops to fix pwm driver 2024-02-10 13:06:05 +01:00
rt288x ramips: 6.1: copy config and patches 2024-02-10 13:06:05 +01:00
rt305x ramips: 6.1: copy config and patches 2024-02-10 13:06:05 +01:00
rt3883 ramips: 6.1: copy config and patches 2024-02-10 13:06:05 +01:00
Makefile ramips: Switch default kernel to 5.15 2023-02-17 16:31:53 +02:00
modules.mk ramips: 6.1: mt7621-dma: add hsdma driver to files 2024-02-10 13:06:05 +01:00