]> git.baikalelectronics.ru Git - kernel.git/commit
nvmem: core: Set the provider read-only when no write callback is given
authorAlban Bedel <albeu@free.fr>
Mon, 28 Jan 2019 15:55:00 +0000 (15:55 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 31 Jan 2019 15:24:14 +0000 (16:24 +0100)
commit89d34449c24d000e68fc3ad793c5e3073e08233b
tree087b0a5fef185c29f77d8e9cea3fa1aa4d668a9c
parent3e3f25555e426bacf13a9e8d35d94ea75aa5767d
nvmem: core: Set the provider read-only when no write callback is given

If no write callback is given the device should be marked as read-only.
While at it also move from a bit or to a logical or as that is a logical
expression.

Signed-off-by: Alban Bedel <albeu@free.fr>
Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/nvmem/core.c