Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
nvmem: fix a 'makes pointer from integer without a cast' build warning
nvmem_register() returns a pointer, not a long int. Use ERR_CAST() to cast the struct gpio_desc pointer to struct nvmem_device. Reported-by: kbuild test robot <[email protected]> Fixes: 2a127da ("nvmem: add support for the write-protect pin") Signed-off-by: Bartosz Golaszewski <[email protected]> Acked-by: Srinivas Kandagatla <[email protected]>
- Loading branch information