diff options
author | Eddie James <eajames@linux.ibm.com> | 2023-06-12 14:56:44 -0500 |
---|---|---|
committer | Joel Stanley <joel@jms.id.au> | 2023-08-09 15:41:59 +0930 |
commit | d5d8dfb01e1041836cef4d2d69b1c1c991c850fb (patch) | |
tree | 8c666d6f499e6cd2affc9a39db61427cab1ccef8 /drivers/fsi/fsi-master-hub.c | |
parent | 23ad7ec1ed79b270a63004f43a301591647f65e8 (diff) | |
download | linux-d5d8dfb01e1041836cef4d2d69b1c1c991c850fb.tar.gz linux-d5d8dfb01e1041836cef4d2d69b1c1c991c850fb.tar.bz2 linux-d5d8dfb01e1041836cef4d2d69b1c1c991c850fb.zip |
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-hub.c')
-rw-r--r-- | drivers/fsi/fsi-master-hub.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/fsi/fsi-master-hub.c b/drivers/fsi/fsi-master-hub.c index 01f0a796111e..6d8b6e8854e5 100644 --- a/drivers/fsi/fsi-master-hub.c +++ b/drivers/fsi/fsi-master-hub.c @@ -105,7 +105,7 @@ static int hub_master_link_enable(struct fsi_master *master, int link, static void hub_master_release(struct device *dev) { - struct fsi_master_hub *hub = to_fsi_master_hub(dev_to_fsi_master(dev)); + struct fsi_master_hub *hub = to_fsi_master_hub(to_fsi_master(dev)); kfree(hub); } |