Bug: 143097249 Test: build, boot sm8520 MTP, verified list of probed devices Change-Id: Iacc0c4d929cc3bba5a0157cd5c06cfe351f43af0 Signed-off-by: Will McVicker <willmcvicker@google.com>
28 lines
900 B
C
28 lines
900 B
C
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
/*
|
|
* Copyright (c) 2016-2019, The Linux Foundation. All rights reserved.
|
|
*/
|
|
|
|
#include <linux/slimbus/slimbus.h>
|
|
#include <linux/of_irq.h>
|
|
|
|
#if IS_ENABLED(CONFIG_OF_SLIMBUS)
|
|
/*
|
|
* of_slim_register_devices() - Register devices in the SLIMbus Device Tree
|
|
* @ctrl: slim_controller which devices should be registered to.
|
|
*
|
|
* This routine scans the SLIMbus Device Tree, allocating resources and
|
|
* creating slim_devices according to the SLIMbus Device Tree
|
|
* hierarchy. Details of this hierarchy can be found in
|
|
* Documentation/devicetree/bindings/slimbus. This routine is normally
|
|
* called from the probe routine of the driver registering as a
|
|
* slim_controller.
|
|
*/
|
|
extern int of_register_slim_devices(struct slim_controller *ctrl);
|
|
#else
|
|
static int of_register_slim_devices(struct slim_controller *ctrl)
|
|
{
|
|
return 0;
|
|
}
|
|
#endif /* CONFIG_OF_SLIMBUS */
|