]> git.baikalelectronics.ru Git - kernel.git/commit
char/nvram: Adopt arch_nvram_ops
authorFinn Thain <fthain@telegraphics.com.au>
Tue, 15 Jan 2019 04:18:56 +0000 (15:18 +1100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 22 Jan 2019 09:21:43 +0000 (10:21 +0100)
commit4bbaecdc1e7849d38fd67583286e168fa07d2354
treef5b2f3c306eaeb39e3ac40882f613cf80e7ff469
parent98335a26dbc5e5a4c9815e0e27b75e49c0261bcb
char/nvram: Adopt arch_nvram_ops

NVRAMs on different platforms and architectures have different attributes
and access methods. E.g. some platforms have byte-at-a-time accessor
functions while others have byte-range accessor functions. Some have
checksum functionality while others do not. By calling ops struct methods
via the common wrapper functions, the nvram module and other drivers can
make use of the available NVRAM functionality in a portable way.

Signed-off-by: Finn Thain <fthain@telegraphics.com.au>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/char/nvram.c
include/linux/nvram.h