summaryrefslogtreecommitdiff
path: root/drivers/fsi/fsi-master-ast-cf.c
diff options
context:
space:
mode:
authorEddie James <eajames@linux.ibm.com>2023-06-12 22:56:44 +0300
committerJoel Stanley <joel@jms.id.au>2023-08-09 09:11:59 +0300
commitd5d8dfb01e1041836cef4d2d69b1c1c991c850fb (patch)
tree8c666d6f499e6cd2affc9a39db61427cab1ccef8 /drivers/fsi/fsi-master-ast-cf.c
parent23ad7ec1ed79b270a63004f43a301591647f65e8 (diff)
downloadlinux-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-ast-cf.c')
-rw-r--r--drivers/fsi/fsi-master-ast-cf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/fsi/fsi-master-ast-cf.c b/drivers/fsi/fsi-master-ast-cf.c
index 5f608ef8b53c..6124978305eb 100644
--- a/drivers/fsi/fsi-master-ast-cf.c
+++ b/drivers/fsi/fsi-master-ast-cf.c
@@ -1190,7 +1190,7 @@ static int fsi_master_acf_gpio_release(void *data)
static void fsi_master_acf_release(struct device *dev)
{
- struct fsi_master_acf *master = to_fsi_master_acf(dev_to_fsi_master(dev));
+ struct fsi_master_acf *master = to_fsi_master_acf(to_fsi_master(dev));
/* Cleanup, stop coprocessor */
mutex_lock(&master->lock);