bcm4908: 5.15: fix compilation error for BCM4908 pinmux patch
authorChristian Marangi <ansuelsmth@gmail.com>
Sat, 6 May 2023 05:44:05 +0000 (07:44 +0200)
committerChristian Marangi <ansuelsmth@gmail.com>
Fri, 12 May 2023 01:15:34 +0000 (03:15 +0200)
commit2b1de625eb0d335750c7118a1a2a95eb61514b89
treee3fde7168de2543a0210202b4fabbd856db796b7
parent58a8fe7cb0775614d3292edbf63a9ff5125f95c0
bcm4908: 5.15: fix compilation error for BCM4908 pinmux patch

Fix compilation warning:
drivers/pinctrl/bcm/pinctrl-bcm4908.c: In function 'bcm4908_pinctrl_probe':
drivers/pinctrl/bcm/pinctrl-bcm4908.c:541:53: error: passing argument 3 of 'pinmux_generic_add_function' discards 'const' qualifier from pointer target type [-Werror=discarded-qualifiers]
  541 |                                             function->groups,
      |                                             ~~~~~~~~^~~~~~~~
In file included from drivers/pinctrl/bcm/pinctrl-bcm4908.c:16:
drivers/pinctrl/bcm/../pinmux.h:153:46: note: expected 'const char **' but argument is of type 'const char * const*'
  153 |                                 const char **groups,
      |                                 ~~~~~~~~~~~~~^~~~~~
cc1: all warnings being treated as errors

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
target/linux/bcm4908/patches-5.15/080-v5.18-0002-pinctrl-bcm-add-driver-for-BCM4908-pinmux.patch