Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 30be774b authored by Andy Shevchenko's avatar Andy Shevchenko Committed by Wolfram Sang
Browse files

i2c: designware-baytrail: cross-check lock functions



It seems the idea behind the cross-check is to prevent acquire semaphore when
there is no release callback and vice versa. Thus, patch fixes a typo.

Signed-off-by: default avatarAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Acked-by: default avatarDavid E. Box <david.e.box@linux.intel.com>
Signed-off-by: default avatarWolfram Sang <wsa@the-dreams.de>
parent c8e043e6
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -71,7 +71,7 @@ static int baytrail_i2c_acquire(struct dw_i2c_dev *dev)
	if (!dev || !dev->dev)
		return -ENODEV;

	if (!dev->acquire_lock)
	if (!dev->release_lock)
		return 0;

	/* host driver writes to side band semaphore register */