mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
extcon: Move OF helper function to extcon core and change function name
This patch move simply OF helper function to extcon core and change function name as following: - of_extcon_get_extcon_dev() -> extcon_get_edev_by_phandle() Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com> Acked-by: Felipe Balbi <balbi@ti.com>
This commit is contained in:
parent
ca48824117
commit
1ad94ffef2
7 changed files with 55 additions and 95 deletions
|
@ -1,31 +0,0 @@
|
|||
/*
|
||||
* OF helpers for External connector (extcon) framework
|
||||
*
|
||||
* Copyright (C) 2013 Texas Instruments, Inc.
|
||||
* Kishon Vijay Abraham I <kishon@ti.com>
|
||||
*
|
||||
* Copyright (C) 2013 Samsung Electronics
|
||||
* Chanwoo Choi <cw00.choi@samsung.com>
|
||||
*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
#ifndef __LINUX_OF_EXTCON_H
|
||||
#define __LINUX_OF_EXTCON_H
|
||||
|
||||
#include <linux/err.h>
|
||||
|
||||
#if IS_ENABLED(CONFIG_OF_EXTCON)
|
||||
extern struct extcon_dev
|
||||
*of_extcon_get_extcon_dev(struct device *dev, int index);
|
||||
#else
|
||||
static inline struct extcon_dev
|
||||
*of_extcon_get_extcon_dev(struct device *dev, int index)
|
||||
{
|
||||
return ERR_PTR(-ENOSYS);
|
||||
}
|
||||
#endif /* CONFIG_OF_EXTCON */
|
||||
#endif /* __LINUX_OF_EXTCON_H */
|
Loading…
Add table
Add a link
Reference in a new issue