License cleanup: add SPDX GPL-2.0 license identifier to files with no license
[linux-block.git] / include / linux / ulpi / interface.h
CommitLineData
b2441318 1/* SPDX-License-Identifier: GPL-2.0 */
289fcff4
HK
2#ifndef __LINUX_ULPI_INTERFACE_H
3#define __LINUX_ULPI_INTERFACE_H
4
5#include <linux/types.h>
6
7struct ulpi;
042b0f31 8struct device;
289fcff4
HK
9
10/**
11 * struct ulpi_ops - ULPI register access
289fcff4
HK
12 * @read: read operation for ULPI register access
13 * @write: write operation for ULPI register access
14 */
15struct ulpi_ops {
e6f74849
TS
16 int (*read)(struct device *dev, u8 addr);
17 int (*write)(struct device *dev, u8 addr, u8 val);
289fcff4
HK
18};
19
b9454f90 20struct ulpi *ulpi_register_interface(struct device *, const struct ulpi_ops *);
289fcff4
HK
21void ulpi_unregister_interface(struct ulpi *);
22
23#endif /* __LINUX_ULPI_INTERFACE_H */