sound: soc: rt5639: reduce permission of codec_reg
Jake Park [Fri, 31 May 2013 12:23:58 +0000 (21:23 +0900)]
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>

sound/soc/codecs/rt5639.c

index 0e2b360..ef5efe8 100644 (file)
@@ -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)