forked from torvalds/linux
-
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.
rpmsg: Move helper for finding rpmsg devices to core
Extract and move the helper function for finding rpmsg child devices to the core. Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
- Loading branch information
Showing
3 changed files
with
68 additions
and
25 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
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,31 @@ | ||
/* | ||
* remote processor messaging bus internals | ||
* | ||
* Copyright (C) 2011 Texas Instruments, Inc. | ||
* Copyright (C) 2011 Google, Inc. | ||
* | ||
* Ohad Ben-Cohen <ohad@wizery.com> | ||
* Brian Swetland <swetland@google.com> | ||
* | ||
* This software is licensed under the terms of the GNU General Public | ||
* License version 2, as published by the Free Software Foundation, and | ||
* may be copied, distributed, and modified under those terms. | ||
* | ||
* 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. | ||
*/ | ||
|
||
#ifndef __RPMSG_INTERNAL_H__ | ||
#define __RPMSG_INTERNAL_H__ | ||
|
||
#include <linux/rpmsg.h> | ||
|
||
#define to_rpmsg_device(d) container_of(d, struct rpmsg_device, dev) | ||
#define to_rpmsg_driver(d) container_of(d, struct rpmsg_driver, drv) | ||
|
||
struct device *rpmsg_find_device(struct device *parent, | ||
struct rpmsg_channel_info *chinfo); | ||
|
||
#endif |
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