diff options
author | Eddie James <eajames@linux.ibm.com> | 2023-06-12 22:56:44 +0300 |
---|---|---|
committer | Joel Stanley <joel@jms.id.au> | 2023-08-09 09:11:59 +0300 |
commit | d5d8dfb01e1041836cef4d2d69b1c1c991c850fb (patch) | |
tree | 8c666d6f499e6cd2affc9a39db61427cab1ccef8 /drivers/fsi/fsi-master.h | |
parent | 23ad7ec1ed79b270a63004f43a301591647f65e8 (diff) | |
download | linux-d5d8dfb01e1041836cef4d2d69b1c1c991c850fb.tar.xz |
fsi: Move fsi_slave structure definition to header
Some FSI drivers may have need of the slave definition, so
move it to a header file. Also use one macro for obtaining a
pointer to the fsi_master structure.
Signed-off-by: Eddie James <eajames@linux.ibm.com>
Link: https://lore.kernel.org/r/20230612195657.245125-2-eajames@linux.ibm.com
Signed-off-by: Joel Stanley <joel@jms.id.au>
Diffstat (limited to 'drivers/fsi/fsi-master.h')
-rw-r--r-- | drivers/fsi/fsi-master.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/fsi/fsi-master.h b/drivers/fsi/fsi-master.h index 4762315a46ba..967622c1cabf 100644 --- a/drivers/fsi/fsi-master.h +++ b/drivers/fsi/fsi-master.h @@ -136,7 +136,7 @@ struct fsi_master { u8 t_send_delay, u8 t_echo_delay); }; -#define dev_to_fsi_master(d) container_of(d, struct fsi_master, dev) +#define to_fsi_master(d) container_of(d, struct fsi_master, dev) /** * fsi_master registration & lifetime: the fsi_master_register() and |