diff options
author | Sumit Sharma <sumsharma@nvidia.com> | 2012-12-13 15:11:27 +0530 |
---|---|---|
committer | Dan Willemsen <dwillemsen@nvidia.com> | 2013-09-14 12:48:08 -0700 |
commit | 69027e519b046160f25fafb0d8efa70b22f64fba (patch) | |
tree | d1ee2f117a44c71206a3cc703f57620f66bbfa38 /drivers/input | |
parent | 0cf7d58963b032e329f227f4c0a9320c3deadf8f (diff) |
input: misc: Changed sysfs permissions
Allow only root to write in sysfs
Bug 1179366
Change-Id: I6afffb8fbc9a2ef1b18d730c8b5d39ed0fd383ee
Signed-off-by: Sumit Sharma <sumsharma@nvidia.com>
Reviewed-on: http://git-master/r/173516
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Diffstat (limited to 'drivers/input')
-rw-r--r-- | drivers/input/misc/max77665_haptic.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/input/misc/max77665_haptic.c b/drivers/input/misc/max77665_haptic.c index be7b261de632..380080292c06 100644 --- a/drivers/input/misc/max77665_haptic.c +++ b/drivers/input/misc/max77665_haptic.c @@ -356,17 +356,17 @@ static ssize_t max77665_haptic_vibrator_ctrl(struct device *dev, return count; } -static DEVICE_ATTR(pattern_cycle, 0666, max77665_haptic_show, +static DEVICE_ATTR(pattern_cycle, 0640, max77665_haptic_show, max77665_haptic_store); -static DEVICE_ATTR(pattern_signal_period, 0666, max77665_haptic_show, +static DEVICE_ATTR(pattern_signal_period, 0640, max77665_haptic_show, max77665_haptic_store); -static DEVICE_ATTR(feedback_duty_cycle, 0666, max77665_haptic_show, +static DEVICE_ATTR(feedback_duty_cycle, 0640, max77665_haptic_show, max77665_haptic_store); -static DEVICE_ATTR(scf_val, 0666, max77665_haptic_show, +static DEVICE_ATTR(scf_val, 0640, max77665_haptic_show, max77665_haptic_store); -static DEVICE_ATTR(pwm_divisor, 0666, max77665_haptic_show, +static DEVICE_ATTR(pwm_divisor, 0640, max77665_haptic_show, max77665_haptic_store); -static DEVICE_ATTR(vibrator_enable, 0644, NULL, +static DEVICE_ATTR(vibrator_enable, 0640, NULL, max77665_haptic_vibrator_ctrl); static struct attribute *max77665_haptics_attr[] = { |