[PATCH v5 14/21] drivers: use dev_read_addr_index_ptr when cast to pointer