Re: [PATCH V3] pinctrl: bcm: ns: use generic groups & functions helpers

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

 



On Wed, Dec 22, 2021 at 7:43 AM Rafał Miłecki <zajec5@xxxxxxxxx> wrote:

> From: Rafał Miłecki <rafal@xxxxxxxxxx>
>
> This simplifies ns driver and gets rid of ~70 lines of code.
>
> "const" had to be dropped from "struct ns_pinctrl_group" @pins to match
> "struct group_desc" @pins and pinctrl_generic_add_group(). Otherwise it
> would cause:
>
> drivers/pinctrl/bcm/pinctrl-ns.c: In function 'ns_pinctrl_probe':
> drivers/pinctrl/bcm/pinctrl-ns.c:277:13: warning: passing argument 3 of 'pinctrl_generic_add_group' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
>   277 |        group->pins, group->num_pins, NULL);
>       |        ~~~~~^~~~~~
>
> Signed-off-by: Rafał Miłecki <rafal@xxxxxxxxxx>

This v3 version applied, nice work!

Yours,
Linus Walleij




[Index of Archives]     [Linux SPI]     [Linux Kernel]     [Linux ARM (vger)]     [Linux ARM MSM]     [Linux Omap]     [Linux Arm]     [Linux Tegra]     [Fedora ARM]     [Linux for Samsung SOC]     [eCos]     [Linux Fastboot]     [Gcc Help]     [Git]     [DCCP]     [IETF Announce]     [Security]     [Linux MIPS]     [Yosemite Campsites]

  Powered by Linux