drm/tests: hdmi: Fix memory leaks in drm_display_mode_from_cea_vic()
[drm/drm-misc.git] / drivers / fsi / fsi-slave.h
blob1d63a585829ddfaf6431f96e261076d06a194471
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 /* Copyright (C) IBM Corporation 2023 */
4 #ifndef DRIVERS_FSI_SLAVE_H
5 #define DRIVERS_FSI_SLAVE_H
7 #include <linux/cdev.h>
8 #include <linux/device.h>
10 struct fsi_master;
12 struct fsi_slave {
13 struct device dev;
14 struct fsi_master *master;
15 struct cdev cdev;
16 int cdev_idx;
17 int id; /* FSI address */
18 int link; /* FSI link# */
19 u32 cfam_id;
20 int chip_id;
21 uint32_t size; /* size of slave address space */
22 u8 t_send_delay;
23 u8 t_echo_delay;
26 #define to_fsi_slave(d) container_of(d, struct fsi_slave, dev)
28 #endif /* DRIVERS_FSI_SLAVE_H */