blob: f73886a5af01a75e9a5afac6d951d61578e799b0 [file] [log] [blame]
Jeremy Kerr0508ad12017-02-01 10:53:41 -06001/* FSI device & driver interfaces
2 *
3 * Copyright (C) IBM Corporation 2016
4 *
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License version 2 as
7 * published by the Free Software Foundation.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 */
14
15#ifndef LINUX_FSI_H
16#define LINUX_FSI_H
17
18#include <linux/device.h>
19
Jeremy Kerrfda07a62017-02-01 10:53:42 -060020struct fsi_device {
21 struct device dev;
22};
23
24struct fsi_driver {
25 struct device_driver drv;
26};
27
28#define to_fsi_dev(devp) container_of(devp, struct fsi_device, dev)
29#define to_fsi_drv(drvp) container_of(drvp, struct fsi_driver, drv)
30
Jeremy Kerr0508ad12017-02-01 10:53:41 -060031extern struct bus_type fsi_bus_type;
32
33#endif /* LINUX_FSI_H */