-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
yaml --- r: 333575 b: refs/heads/master c: 484dc40 h: refs/heads/master i: 333573: 4e16e06 333571: a68c7d6 333567: c3ac1f2 v: v3
- Loading branch information
Archit Taneja
committed
Sep 26, 2012
1 parent
51cd86b
commit 1d3b891
Showing
5 changed files
with
84 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
--- | ||
refs/heads/master: fc22a84339d387203cc2a1685fb251a5ad4c9b43 | ||
refs/heads/master: 484dc404d233696ef65a8e676f9d4fe563b091ee |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
/* | ||
* Copyright (C) 2012 Texas Instruments Ltd | ||
* Author: Archit Taneja <archit@ti.com> | ||
* | ||
* 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. | ||
* | ||
* 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, see <http://www.gnu.org/licenses/>. | ||
*/ | ||
|
||
#include <linux/kernel.h> | ||
#include <linux/platform_device.h> | ||
#include <linux/slab.h> | ||
|
||
#include <video/omapdss.h> | ||
|
||
#include "dss.h" | ||
|
||
static LIST_HEAD(output_list); | ||
|
||
void dss_register_output(struct omap_dss_output *out) | ||
{ | ||
list_add_tail(&out->list, &output_list); | ||
} | ||
|
||
void dss_unregister_output(struct omap_dss_output *out) | ||
{ | ||
list_del(&out->list); | ||
} | ||
|
||
struct omap_dss_output *omap_dss_get_output(enum omap_dss_output_id id) | ||
{ | ||
struct omap_dss_output *out; | ||
|
||
list_for_each_entry(out, &output_list, list) { | ||
if (out->id == id) | ||
return out; | ||
} | ||
|
||
return NULL; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters