Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(148)

Side by Side Diff: sound/soc/tegra/tegra_das.c

Issue 6577007: CHROMIUM: ASoC: Import entire upstream ASoC tree (Closed)
Patch Set: Created 9 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « sound/soc/tegra/tegra_asoc_utils.c ('k') | sound/soc/tegra/tegra_i2s.c » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * tegra_das.c - Tegra DAS driver 2 * tegra_das.c - Tegra DAS driver
3 * 3 *
4 * Author: Stephen Warren <swarren@nvidia.com> 4 * Author: Stephen Warren <swarren@nvidia.com>
5 * Copyright (C) 2010 - NVIDIA, Inc. 5 * Copyright (C) 2010 - NVIDIA, Inc.
6 * 6 *
7 * This program is free software; you can redistribute it and/or 7 * This program is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU General Public License 8 * modify it under the terms of the GNU General Public License
9 * version 2 as published by the Free Software Foundation. 9 * version 2 as published by the Free Software Foundation.
10 * 10 *
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
137 137
138 static const struct file_operations tegra_das_debug_fops = { 138 static const struct file_operations tegra_das_debug_fops = {
139 .open = tegra_das_debug_open, 139 .open = tegra_das_debug_open,
140 .read = seq_read, 140 .read = seq_read,
141 .llseek = seq_lseek, 141 .llseek = seq_lseek,
142 .release = single_release, 142 .release = single_release,
143 }; 143 };
144 144
145 static void tegra_das_debug_add(struct tegra_das *das) 145 static void tegra_das_debug_add(struct tegra_das *das)
146 { 146 {
147 » das->debug = debugfs_create_file(DRV_NAME, S_IRUGO, asoc_debugfs_root, 147 » das->debug = debugfs_create_file(DRV_NAME, S_IRUGO,
148 » » » » » » das, &tegra_das_debug_fops); 148 » » » » » snd_soc_debugfs_root, das,
149 » » » » » &tegra_das_debug_fops);
149 } 150 }
150 151
151 static void tegra_das_debug_remove(struct tegra_das *das) 152 static void tegra_das_debug_remove(struct tegra_das *das)
152 { 153 {
153 if (das->debug) 154 if (das->debug)
154 debugfs_remove(das->debug); 155 debugfs_remove(das->debug);
155 } 156 }
156 #else 157 #else
157 static inline void tegra_das_debug_add(struct tegra_das *das) 158 static inline void tegra_das_debug_add(struct tegra_das *das)
158 { 159 {
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
254 255
255 static void __exit tegra_das_modexit(void) 256 static void __exit tegra_das_modexit(void)
256 { 257 {
257 platform_driver_unregister(&tegra_das_driver); 258 platform_driver_unregister(&tegra_das_driver);
258 } 259 }
259 module_exit(tegra_das_modexit); 260 module_exit(tegra_das_modexit);
260 261
261 MODULE_AUTHOR("Stephen Warren <swarren@nvidia.com>"); 262 MODULE_AUTHOR("Stephen Warren <swarren@nvidia.com>");
262 MODULE_DESCRIPTION("Tegra DAS driver"); 263 MODULE_DESCRIPTION("Tegra DAS driver");
263 MODULE_LICENSE("GPL"); 264 MODULE_LICENSE("GPL");
265 MODULE_ALIAS("platform:" DRV_NAME);
OLDNEW
« no previous file with comments | « sound/soc/tegra/tegra_asoc_utils.c ('k') | sound/soc/tegra/tegra_i2s.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698