rtc: max77620: change sysfs interface permission to 666
Laxman Dewangan [Fri, 13 Nov 2015 08:13:13 +0000 (13:13 +0530)]
Change the permission of sysfs interface for enabling/disabling
prints in suspend to 666 so that user space can change it
per requirements.

bug 200148303

Change-Id: I18f22c04be23211f943f76eca5a15c52e0f63dce
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/832639

drivers/rtc/rtc-max77620.c

index 4ebfbef..669214d 100644 (file)
@@ -521,7 +521,7 @@ static ssize_t max77620_rtc_show_time_display_suspend(struct device *dev,
        return sprintf(buf, "enabled\n");
 }
 
-static DEVICE_ATTR(time_display_suspend, 0444,
+static DEVICE_ATTR(time_display_suspend, 0666,
                max77620_rtc_show_time_display_suspend,
                max77620_rtc_set_time_display_suspend);