Linux 4.19.133
[linux/fpc-iii.git] / drivers / staging / greybus / spilib.h
blob043d4d32c3eed0eb51517ea430be48dd02547440
1 // SPDX-License-Identifier: GPL-2.0
2 /*
3 * Greybus SPI library header
5 * copyright 2016 google inc.
6 * copyright 2016 linaro ltd.
8 * released under the gplv2 only.
9 */
11 #ifndef __SPILIB_H
12 #define __SPILIB_H
14 struct device;
15 struct gb_connection;
17 struct spilib_ops {
18 int (*prepare_transfer_hardware)(struct device *dev);
19 void (*unprepare_transfer_hardware)(struct device *dev);
22 int gb_spilib_master_init(struct gb_connection *connection,
23 struct device *dev, struct spilib_ops *ops);
24 void gb_spilib_master_exit(struct gb_connection *connection);
26 #endif /* __SPILIB_H */