[PATCH 5.5 27/46] nvmem: check for NULL reg_read and reg_write before dereferencing