diff options
| author | Ali Tariq <alitariq45892@gmail.com> | 2025-10-26 11:42:40 +0000 |
|---|---|---|
| committer | Linus Walleij <linusw@kernel.org> | 2025-12-04 00:22:49 +0100 |
| commit | 9dc966799ac9a2573d970080334a801fcc283a1b (patch) | |
| tree | b8056bbe9175cba54c150c8b87f956572550345e /rust/proc-macro2/parse.rs | |
| parent | 61d1bb53547d42c6bdaec9da4496beb3a1a05264 (diff) | |
pinctrl: starfive: use dynamic GPIO base allocation
The JH7110 pinctrl driver currently sets a static GPIO base number from
platform data:
sfp->gc.base = info->gc_base;
Static base assignment is deprecated and results in the following warning:
gpio gpiochip0: Static allocation of GPIO base is deprecated,
use dynamic allocation.
Set `sfp->gc.base = -1` to let the GPIO core dynamically allocate
the base number. This removes the warning and aligns the driver
with current GPIO guidelines.
Since the GPIO base is now allocated dynamically, remove `gc_base` field in
`struct jh7110_pinctrl_soc_info` and the associated `JH7110_SYS_GC_BASE`
and `JH7110_AON_GC_BASE` constants as they are no longer used anywhere
in the driver.
Tested on VisionFive 2 (JH7110 SoC).
Signed-off-by: Ali Tariq <alitariq45892@gmail.com>
Reviewed-by: Emil Renner Berthing <emil.renner.berthing@canonical.com>
Reviewed-by: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
Signed-off-by: Linus Walleij <linusw@kernel.org>
Diffstat (limited to 'rust/proc-macro2/parse.rs')
0 files changed, 0 insertions, 0 deletions
