diff options
author | Bartosz Golaszewski <bgolaszewski@baylibre.com> | 2020-01-10 11:19:29 +0300 |
---|---|---|
committer | Bartosz Golaszewski <bgolaszewski@baylibre.com> | 2020-01-10 14:11:30 +0300 |
commit | a99d2c6ccd15570a74a39992efa82fd169026b4c (patch) | |
tree | 4c78ee59c167e2c1ab7108fe96c61d77d28b2cf9 /.mailmap | |
parent | 1c89074bf85068d1b86f2e0f0c2110fdd9b83c9f (diff) | |
download | linux-a99d2c6ccd15570a74a39992efa82fd169026b4c.tar.xz |
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>
Diffstat (limited to '.mailmap')
0 files changed, 0 insertions, 0 deletions