commit | a99d2c6ccd15570a74a39992efa82fd169026b4c | [log] [tgz] |
---|---|---|
author | Bartosz Golaszewski <bgolaszewski@baylibre.com> | Fri Jan 10 09:19:29 2020 +0100 |
committer | Bartosz Golaszewski <bgolaszewski@baylibre.com> | Fri Jan 10 12:11:30 2020 +0100 |
tree | 4c78ee59c167e2c1ab7108fe96c61d77d28b2cf9 | |
parent | 1c89074bf85068d1b86f2e0f0c2110fdd9b83c9f [diff] |
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 <lkp@intel.com> Fixes: 2a127da461a9 ("nvmem: add support for the write-protect pin") Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com> Acked-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>