lkml.org 
[lkml]   [2020]   [Mar]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH v2 2/2] nvmem: core: use is_bin_visible for permissions
From
Date


On 25/03/2020 10:21, Greg KH wrote:
>> -
>> const struct attribute_group **nvmem_sysfs_get_groups(
>> struct nvmem_device *nvmem,
>> const struct nvmem_config *config)
> You no longer need any parameters for this function, right?
no we do not need that, I can update that in next version.

>
> Also, you really don't even need the function, just point to the
> variable instead.
We have a use case where in the user can chose to not have sysfs entry,
specially if we have hypervisor trapping access to some range of entries
in nvmem. This is enforced using CONFIG_NVMEM_SYSFS option.

Currently in upstream we have a stub function when CONFIG_NVMEM_SYSFS is
not selected returning NULL.

If we want to remove this function and subsequently the nvmem-sysfs.c
file then we have to have #ifdef in the code which am okay to do if that
is something that you are keen on.


thanks,
srini

>
> thanks,

\
 
 \ /
  Last update: 2020-03-25 11:40    [W:0.241 / U:0.288 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site