Re: [PATCH] misc: mark write buffer const

2022-01-24 Thread Tom Rini
On Tue, Jan 11, 2022 at 05:04:49PM +, John Keeping 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

Re: [PATCH] misc: mark write buffer const

2022-01-12 Thread Simon Glass
On Tue, 11 Jan 2022 at 10:04, John Keeping 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 Keep

[PATCH] misc: mark write buffer const

2022-01-11 Thread John Keeping
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 --- drivers/misc/misc-uclass.c | 2 +- include/misc.h