[PATCH RESEND] lib: crc8: Pointer to data block should be const

2021-03-29 Thread Richard Fitzgerald
crc8() does not change the data passed to it, so the pointer argument should be declared const. This avoids callers that receive const data having to cast it to a non-const pointer to call crc8(). Signed-off-by: Richard Fitzgerald Acked-by: Randy Dunlap --- No maintainer listed for this file so

[PATCH RESEND] lib: crc8: Pointer to data block should be const

2021-02-02 Thread Richard Fitzgerald
crc8() does not change the data passed to it, so the pointer argument should be declared const. This avoids callers that receive const data having to cast it to a non-const pointer to call crc8(). Signed-off-by: Richard Fitzgerald Acked-by: Randy Dunlap --- No maintainer listed for this file so