diff options
author | Jake Park <jakep@nvidia.com> | 2013-05-31 21:23:58 +0900 |
---|---|---|
committer | Harshada Kale <hkale@nvidia.com> | 2013-06-05 07:10:51 -0700 |
commit | 498f907c802d7f6dec5cde6686459154ad643c63 (patch) | |
tree | 57c3f8d485aeeecd5af3ba5fa6277d6d6c281310 /sound | |
parent | 0668893fec4a6aa791ac46c1c393a39eb185ebe7 (diff) |
sound: soc: rt5639: reduce permission of codec_reg
Reduced access permission of codec_reg from 0666 to 0644 to avoid
testAllFilesInSysAreNotWritable CTS failure.
Bug 1298831
Change-Id: I2be1444ba0460d783b76b1aa9d83f3d469ae9456
Signed-off-by: Jake Park <jakep@nvidia.com>
Reviewed-on: http://git-master/r/234536
(cherry picked from commit cb26b9a47efc09e1cf52711203d2d33d39345a04)
Reviewed-on: http://git-master/r/235297
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Simon Je <sje@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Scott Peterson <speterson@nvidia.com>
Diffstat (limited to 'sound')
-rw-r--r-- | sound/soc/codecs/rt5639.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sound/soc/codecs/rt5639.c b/sound/soc/codecs/rt5639.c index 0e2b360f9d37..ef5efe88d5de 100644 --- a/sound/soc/codecs/rt5639.c +++ b/sound/soc/codecs/rt5639.c @@ -4,6 +4,8 @@ * Copyright (c) 2011-2013 REALTEK SEMICONDUCTOR CORP. All rights reserved. * Author: Johnny Hsu <johnnyhsu@realtek.com> * + * Copyright (c) 2013, NVIDIA CORPORATION. All rights reserved. + * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation. @@ -2878,7 +2880,7 @@ static ssize_t rt5639_codec_store(struct device *dev, return count; } -static DEVICE_ATTR(codec_reg, 0666, rt5639_codec_show, rt5639_codec_store); +static DEVICE_ATTR(codec_reg, 0644, rt5639_codec_show, rt5639_codec_store); static int rt5639_set_bias_level(struct snd_soc_codec *codec, enum snd_soc_bias_level level) |