To avoid uncessary register driver, a dynamic check device status interface can be used to judge before register driver. Change-Id: I07d61a80ca46b955110c37588a1a466b0b4f2922 Reviewed-on: https://gerrit.mot.com/2074097 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: litong <litong20@motorola.com> Reviewed-by: Jichao Zou <zoujc@motorola.com> Submit-Approved: Jira Key
20 lines
759 B
C
20 lines
759 B
C
/* Copyright (c) 2020-2021, The Linux Foundation. All rights reserved.
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License version 2 and
|
|
* only 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.
|
|
*/
|
|
|
|
#ifndef __MMI_DEVICE_H_INCLUDED
|
|
#define __MMI_DEVICE_H_INCLUDED
|
|
|
|
bool mmi_device_is_available(struct device_node *np);
|
|
struct device_node *mmi_check_dynamic_device_node(char *dev_name);
|
|
|
|
#endif /* __MMI_DEVICE_H_INCLUDED */
|