base.c (72877cf38b4b78fbb3a852f2288d7f2a7af0db22) | base.c (d3541ca81dbddeefa0c42df448211a9dbaef0843) |
---|---|
1/* 2 * OMAP Display Subsystem Base 3 * 4 * Copyright (C) 2015-2017 Texas Instruments Incorporated - http://www.ti.com/ 5 * 6 * This program is free software; you can redistribute it and/or modify 7 * it under the terms of the GNU General Public License version 2 as 8 * published by the Free Software Foundation. --- 4 unchanged lines hidden (view full) --- 13 * General Public License for more details. 14 */ 15 16#include <linux/kernel.h> 17#include <linux/module.h> 18#include <linux/of.h> 19#include <linux/of_graph.h> 20#include <linux/list.h> | 1/* 2 * OMAP Display Subsystem Base 3 * 4 * Copyright (C) 2015-2017 Texas Instruments Incorporated - http://www.ti.com/ 5 * 6 * This program is free software; you can redistribute it and/or modify 7 * it under the terms of the GNU General Public License version 2 as 8 * published by the Free Software Foundation. --- 4 unchanged lines hidden (view full) --- 13 * General Public License for more details. 14 */ 15 16#include <linux/kernel.h> 17#include <linux/module.h> 18#include <linux/of.h> 19#include <linux/of_graph.h> 20#include <linux/list.h> |
21 22#include "dss.h" |
|
21#include "omapdss.h" 22 23static struct dss_device *dss_device; | 23#include "omapdss.h" 24 25static struct dss_device *dss_device; |
24static const struct dispc_ops *ops; | |
25 26static struct list_head omapdss_comp_list; 27 28struct omapdss_comp_node { 29 struct list_head list; 30 struct device_node *node; 31 bool dss_core_component; 32}; --- 5 unchanged lines hidden (view full) --- 38EXPORT_SYMBOL(omapdss_get_dss); 39 40void omapdss_set_dss(struct dss_device *dss) 41{ 42 dss_device = dss; 43} 44EXPORT_SYMBOL(omapdss_set_dss); 45 | 26 27static struct list_head omapdss_comp_list; 28 29struct omapdss_comp_node { 30 struct list_head list; 31 struct device_node *node; 32 bool dss_core_component; 33}; --- 5 unchanged lines hidden (view full) --- 39EXPORT_SYMBOL(omapdss_get_dss); 40 41void omapdss_set_dss(struct dss_device *dss) 42{ 43 dss_device = dss; 44} 45EXPORT_SYMBOL(omapdss_set_dss); 46 |
46void dispc_set_ops(const struct dispc_ops *o) | 47const struct dispc_ops *dispc_get_ops(struct dss_device *dss) |
47{ | 48{ |
48 ops = o; | 49 return dss->dispc_ops; |
49} | 50} |
50EXPORT_SYMBOL(dispc_set_ops); 51 52const struct dispc_ops *dispc_get_ops(void) 53{ 54 return ops; 55} | |
56EXPORT_SYMBOL(dispc_get_ops); 57 58static bool omapdss_list_contains(const struct device_node *node) 59{ 60 struct omapdss_comp_node *comp; 61 62 list_for_each_entry(comp, &omapdss_comp_list, list) { 63 if (comp->node == node) --- 92 unchanged lines hidden --- | 51EXPORT_SYMBOL(dispc_get_ops); 52 53static bool omapdss_list_contains(const struct device_node *node) 54{ 55 struct omapdss_comp_node *comp; 56 57 list_for_each_entry(comp, &omapdss_comp_list, list) { 58 if (comp->node == node) --- 92 unchanged lines hidden --- |