[PATCH] pinctrl: stmfx: define LOG_CATEGORY

Patrice CHOTARD patrice.chotard at foss.st.com
Mon Nov 15 09:20:09 CET 2021


Hi Patrick

On 11/10/21 6:14 PM, Patrick Delaunay wrote:
> Define LOG_CATEGORY to allow filtering with log command.
> 
> Signed-off-by: Patrick Delaunay <patrick.delaunay at foss.st.com>
> ---
> 
>  drivers/pinctrl/pinctrl-stmfx.c | 4 ++++
>  1 file changed, 4 insertions(+)
> 
> diff --git a/drivers/pinctrl/pinctrl-stmfx.c b/drivers/pinctrl/pinctrl-stmfx.c
> index fe7a59d431..509e2a80e9 100644
> --- a/drivers/pinctrl/pinctrl-stmfx.c
> +++ b/drivers/pinctrl/pinctrl-stmfx.c
> @@ -5,8 +5,12 @@
>   * Driver for STMicroelectronics Multi-Function eXpander (STMFX) GPIO expander
>   * based on Linux driver : pinctrl/pinctrl-stmfx.c
>   */
> +
> +#define LOG_CATEGORY UCLASS_PINCTRL
> +
>  #include <common.h>
>  #include <dm.h>
> +#include <log.h>
>  #include <i2c.h>
>  #include <asm/gpio.h>
>  #include <dm/device.h>
> 

Reviewed-by: Patrice Chotard <patrice.chotard at foss.st.com>
Thanks
Patrice


More information about the U-Boot mailing list