[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20200325100138.17854-1-srinivas.kandagatla@linaro.org>
Date: Wed, 25 Mar 2020 10:01:36 +0000
From: Srinivas Kandagatla <srinivas.kandagatla@...aro.org>
To: gregkh@...uxfoundation.org
Cc: linux-kernel@...r.kernel.org,
nicholas.johnson-opensource@...look.com.au,
Srinivas Kandagatla <srinivas.kandagatla@...aro.org>
Subject: [PATCH v2 0/2] nvmem: use is_bin_visible callback
Hi Greg,
As suggested I managed to use is_bin_visible for the existing code
and also added few more checks for callbacks before setting
permissions on the file. Which also means that Thunderbolt case
for write-only should be fixed automatically with this patch.
Changes since v1:
- Updated permissions setup logic as suggested by Greg
- Added checks for callbacks.
Thanks,
srini
Srinivas Kandagatla (2):
nvmem: core: add root_only member to nvmem device struct
nvmem: core: use is_bin_visible for permissions
drivers/nvmem/core.c | 1 +
drivers/nvmem/nvmem-sysfs.c | 85 +++++++++++++------------------------
drivers/nvmem/nvmem.h | 1 +
3 files changed, 31 insertions(+), 56 deletions(-)
--
2.21.0
Powered by blists - more mailing lists