]> git.ipfire.org Git - thirdparty/linux.git/commit
pinctrl: renesas: rzg2l: Introduce single macro for digital noise filter configuration
authorLad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
Thu, 29 Aug 2024 19:48:39 +0000 (20:48 +0100)
committerGeert Uytterhoeven <geert+renesas@glider.be>
Mon, 2 Sep 2024 08:13:55 +0000 (10:13 +0200)
commitbefcded23454825ca2cc4c24626b68c75fcb1528
treebe745705c576b419535c3ae71a2c208316d46392
parentdad83b9527030e29cc3148f7274910cf40fe7f1a
pinctrl: renesas: rzg2l: Introduce single macro for digital noise filter configuration

Support for enabling the digital noise filter, and support for
configuring the noise filter stages (via the FILNUM register) and the
sampling interval (via the FILCLKSEL register) are related: a pin
supports either all or none of them. Hence simplify declaring digital
noise filter support for a pin by using a single feature flag instead of
three separate flags.

This patch removes the PIN_CFG_FILNUM and PIN_CFG_FILCLKSEL configuration
macros and renames PIN_CFG_FILONOFF to PIN_CFG_NF.

Signed-off-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Link: https://lore.kernel.org/20240829194841.84398-2-prabhakar.mahadev-lad.rj@bp.renesas.com
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
drivers/pinctrl/renesas/pinctrl-rzg2l.c