diff options
author | Bartosz Golaszewski <[email protected]> | 2020-01-10 09:19:29 +0100 |
---|---|---|
committer | Bartosz Golaszewski <[email protected]> | 2020-01-10 12:11:30 +0100 |
commit | a99d2c6ccd15570a74a39992efa82fd169026b4c (patch) | |
tree | 4c78ee59c167e2c1ab7108fe96c61d77d28b2cf9 /drivers/usb/cdns3/cdns3-debug.h | |
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 <[email protected]>
Fixes: 2a127da461a9 ("nvmem: add support for the write-protect pin")
Signed-off-by: Bartosz Golaszewski <[email protected]>
Acked-by: Srinivas Kandagatla <[email protected]>
Diffstat (limited to 'drivers/usb/cdns3/cdns3-debug.h')
0 files changed, 0 insertions, 0 deletions