summaryrefslogtreecommitdiff
path: root/drivers/video/tegra/dc/dc_sysfs.c
diff options
context:
space:
mode:
authorJon Mayo <jmayo@nvidia.com>2011-06-30 11:20:37 -0700
committerDan Willemsen <dwillemsen@nvidia.com>2011-11-30 21:47:47 -0800
commited7a052ee21ba13e129562e1b3ef688ce5cdc3e3 (patch)
tree4e7258945a98d12056d1db52843fbff5f6997fed /drivers/video/tegra/dc/dc_sysfs.c
parent5dac3e2f80188bdd46b1af38d4875219823a5ecb (diff)
video: tegra: update copyright and comments
added correct copyright comment. removed funny block comments. Original-Change-Id: I1a86083e3467bba208e5cafc3886a3800cb52e1d Reviewed-on: http://git-master/r/39246 Reviewed-by: Varun Colbert <vcolbert@nvidia.com> Tested-by: Varun Colbert <vcolbert@nvidia.com> Rebase-Id: R50e415ae0c7d0f52ab7313a55ad757cec8910d9f
Diffstat (limited to 'drivers/video/tegra/dc/dc_sysfs.c')
-rw-r--r--drivers/video/tegra/dc/dc_sysfs.c34
1 files changed, 20 insertions, 14 deletions
diff --git a/drivers/video/tegra/dc/dc_sysfs.c b/drivers/video/tegra/dc/dc_sysfs.c
index 36294c60907f..37c286235b39 100644
--- a/drivers/video/tegra/dc/dc_sysfs.c
+++ b/drivers/video/tegra/dc/dc_sysfs.c
@@ -1,3 +1,23 @@
+/*
+ * drivers/video/tegra/dc/dc_sysfs.c
+ *
+ * Copyright (c) 2011, NVIDIA Corporation.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful, but WITHOUT
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+ * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
+ * more details.
+ *
+ * You should have received a copy of the GNU General Public License along
+ * with this program; if not, write to the Free Software Foundation, Inc.,
+ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ */
+
#include <linux/platform_device.h>
#include <linux/kernel.h>
@@ -8,9 +28,6 @@
#include "dc_priv.h"
#include "nvsd.h"
-/****************
- * Current mode *
- ****************/
static ssize_t mode_show(struct device *device,
struct device_attribute *attr, char *buf)
{
@@ -47,9 +64,6 @@ static ssize_t mode_show(struct device *device,
static DEVICE_ATTR(mode, S_IRUGO, mode_show, NULL);
-/*******************
- * DC Stat Enabled *
- *******************/
static ssize_t stats_enable_show(struct device *dev,
struct device_attribute *attr, char *buf)
{
@@ -86,10 +100,6 @@ static ssize_t stats_enable_store(struct device *dev,
static DEVICE_ATTR(stats_enable, S_IRUGO|S_IWUSR,
stats_enable_show, stats_enable_store);
-
-/**************
- * DC Enabled *
- **************/
static ssize_t enable_show(struct device *device,
struct device_attribute *attr, char *buf)
{
@@ -272,10 +282,6 @@ static ssize_t mode_3d_store(struct device *dev,
static DEVICE_ATTR(stereo_mode,
S_IRUGO|S_IWUGO, mode_3d_show, mode_3d_store);
-
-/********
- * Init *
- ********/
void __devexit tegra_dc_remove_sysfs(struct device *dev)
{
struct nvhost_device *ndev = to_nvhost_device(dev);