misc: mark write buffer const
authorJohn Keeping <john@metanate.com>
Tue, 11 Jan 2022 17:04:49 +0000 (17:04 +0000)
committerTom Rini <trini@konsulko.com>
Mon, 24 Jan 2022 15:35:10 +0000 (10:35 -0500)
commite44d2f5df9baa9b604df4eaa4d42f89657170598
treef87585b0a0c004dfb2ef1709bb9b2374ea3c39cb
parent6f08eee67fe93068ab501cc5f3094e480e76f4a9
misc: mark write buffer const

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@metanate.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
drivers/misc/misc-uclass.c
include/misc.h