Vinod Koul | 7c3cd18 | 2017-12-14 11:19:34 +0530 | [diff] [blame^] | 1 | // SPDX-License-Identifier: (GPL-2.0 OR BSD-3-Clause) |
2 | // Copyright(c) 2015-17 Intel Corporation. | ||||
3 | |||||
4 | #ifndef __SDW_BUS_H | ||||
5 | #define __SDW_BUS_H | ||||
6 | |||||
7 | #if IS_ENABLED(CONFIG_ACPI) | ||||
8 | int sdw_acpi_find_slaves(struct sdw_bus *bus); | ||||
9 | #else | ||||
10 | static inline int sdw_acpi_find_slaves(struct sdw_bus *bus) | ||||
11 | { | ||||
12 | return -ENOTSUPP; | ||||
13 | } | ||||
14 | #endif | ||||
15 | |||||
16 | void sdw_extract_slave_id(struct sdw_bus *bus, | ||||
17 | u64 addr, struct sdw_slave_id *id); | ||||
18 | |||||
19 | #endif /* __SDW_BUS_H */ |