On Mon, Jul 17, 2017 at 02:55:37PM +0530, Arvind Yadav wrote:Yes, we can use. if we are only initializing '.attrs'.
attribute_groups are not supposed to change at runtime. All functionsWhy not just use the ATTRIBUTE_GROUPS() macro for these? Or is there
working with attribute_groups provided by <linux/sysfs.h> work
with const attribute_group. So mark the non-const structs as const.
Signed-off-by: Arvind Yadav <arvind.yadav.cs@xxxxxxxxx>
---
drivers/staging/unisys/visorbus/visorbus_main.c | 4 ++--
drivers/staging/unisys/visorbus/visorchipset.c | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
something that is preventing that?
Thanks,
thanks,
greg k-h