[PATCH 12/15] gpio: Use an 'ops' variable everywhere

Patrick DELAUNAY patrick.delaunay at foss.st.com
Thu Jan 21 11:13:08 CET 2021


Hi,

On 1/15/21 3:04 PM, Simon Glass wrote:
> Update this driver to use the common method of putting the driver
> operations in an 'ops' variable install of calling gpio_get_ops()
> repeatedly. Make it const since operations do not change.
>
> Signed-off-by: Simon Glass <sjg at chromium.org>
> ---
>
>   drivers/gpio/gpio-uclass.c | 25 ++++++++++++++-----------
>   1 file changed, 14 insertions(+), 11 deletions(-)
>

Reviewed-by: Patrick Delaunay <patrick.delaunay at foss.st.com>

Thanks

Patrick



More information about the U-Boot mailing list