[PATCH] misc: mark write buffer const
Simon Glass
sjg at chromium.org
Wed Jan 12 21:03:09 CET 2022
On Tue, 11 Jan 2022 at 10:04, John Keeping <john at metanate.com> wrote:
>
> The write operation in misc_ops already takes a "const void *" buffer,
> but misc_write() takes a mutable "void *". There's no reason for this,
> so make misc_write() consistent with the standard write() prototype.
>
> Signed-off-by: John Keeping <john at metanate.com>
> ---
> drivers/misc/misc-uclass.c | 2 +-
> include/misc.h | 2 +-
> 2 files changed, 2 insertions(+), 2 deletions(-)
Reviewed-by: Simon Glass <sjg at chromium.org>
More information about the U-Boot
mailing list