Re: [PATCH 11/16] libnvdimm: Simplify root read-only definition for the 'resource' attribute

2019-11-12 Thread Aneesh Kumar K.V
Dan Williams writes: > Rather than update the permission in ->is_visible() set the permission > directly at declaration time. > Reviewed-by: Aneesh Kumar K.V > Cc: Ira Weiny > Cc: Vishal Verma > Signed-off-by: Dan Williams > --- > drivers/nvdimm/namespace_devs.c |9 +++-- >

[PATCH 11/16] libnvdimm: Simplify root read-only definition for the 'resource' attribute

2019-11-06 Thread Dan Williams
Rather than update the permission in ->is_visible() set the permission directly at declaration time. Cc: Ira Weiny Cc: Vishal Verma Signed-off-by: Dan Williams --- drivers/nvdimm/namespace_devs.c |9 +++-- drivers/nvdimm/pfn_devs.c | 10 +- drivers/nvdimm/region_devs.c