On 3/6/22 9:29 PM, Shung-Hsi Yu wrote:
Instead of determining buf_info string in the caller of check_buffer_access(), we can determine whether the register type is read-only through type_is_rdonly_mem() helper inside check_buffer_access() and construct buf_info, making the code slightly cleaner. Signed-off-by: Shung-Hsi Yu <shung-hsi.yu@xxxxxxxx>
LGTM. Thanks. Acked-by: Yonghong Song <yhs@xxxxxx>