android_kernel_oneplus_msm8998/include/linux/of_slimbus.h
Girish Mahadevan 1f6c29a46f slimbus: Add snapshot of slimbus driver
Add snapshot of slimbus driver from msm-3.18 branch.
Baseline:
e70ad0cd5efdd9dc91a77dcdac31d6132e1315c1

Change-Id: I82f8f91596d2c3e9ef111e26c80298d990f6c193
Signed-off-by: Girish Mahadevan <girishm@codeaurora.org>
2016-03-22 11:10:35 -07:00

34 lines
1.3 KiB
C

/* Copyright (c) 2012, 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.
*/
#include <linux/slimbus/slimbus.h>
#include <linux/of_irq.h>
#ifdef 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 */