[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <ZEk4YNQeYohEwnSg@surfacebook>
Date:   Wed, 26 Apr 2023 17:42:40 +0300
From:   andy.shevchenko@...il.com
To:     Yan Wang <rk.code@...look.com>
Cc:     linus.walleij@...aro.org, brgl@...ev.pl,
        "open list:GPIO SUBSYSTEM" <linux-gpio@...r.kernel.org>,
        open list <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH v2] gpio: gpiolib: clear the array_info's memory space
Sun, Apr 23, 2023 at 09:59:43PM +0800, Yan Wang kirjoitti:
> if hardware number different to array index,it needs to clear to points
> memory space if the array_info have been assigned a value.
Can you explain a bit more what's going on there?
...
>  			if (bitmap_full(array_info->get_mask, descs->ndescs)) {
> +				/*clear descs->info*/
> +				memset(array_info, 0, sizeof(struct gpio_array));
>  				array_info = NULL;
...
>  			}
-- 
With Best Regards,
Andy Shevchenko
Powered by blists - more mailing lists