- Bug Fixes

- Identify potentially unused functions when !PM; rk808
 -----BEGIN PGP SIGNATURE-----
 
 iQIzBAABCgAdFiEEdrbJNaO+IJqU8IdIUa+KL4f8d2EFAl1lJEEACgkQUa+KL4f8
 d2HWkw//UivXCeiGQLx0TKmfVUxh3TBmnFo3nDBjwM+BhZ/BxYC9eAjYYlUmLEGx
 yLzt5kms2YC9mLkhJHQiaMOwfBw6b1vuoSI/P/0OnIMBzarPAGVIt5Xnf3pnWhf7
 NmoSe3dNF16/9I+CJWX+eizY7x27ydM3mR8cLEeCDRX05VVNtc0uCrilXcrRBy9P
 k1QJhsHLjeDUkICVHYlrlG920s7A+zeujarBatcWTtJ26AoUrfkuiGfU304ZJvqa
 RLW756pU17AbmoKVSczDgpORSUN85USw8FgkpKjq/vtH5L9M03p+yXIDmziGD3/1
 wfkUsSSYlyv3quqnJPliidfNJmSFA5HQYkONhQC3zLwH8AQLvNmNnhwXH9UuaRS7
 +uPPpdwp7/VMck0cFoEDMzloZr/UYrZ9Iypn8RZPBgkzE7EVYlY+zZ47zXNCEwQc
 AuIyxr8b4Dv6LKBdKmXNr1I81JkRwMBcZMJrdjpVIpu4pwFraWJF8joxPX/Tc9ge
 wKqNSVfEBPIbiBt9Pg1EdoipS23EUSMXN09DrYfq2mVYNPtwKxxYCB2vp2+cWETS
 dg+OIteO2OvGlVWdjg4R/ctkFF7xWz4oGX1Y93uKAnudDX+oU0l0274XDabqJzQ5
 AWcMC50mubEoA82jMTb5V8f/2SO3IEza5doQQB6VMq7LQKNqZmI=
 =N5Nd
 -----END PGP SIGNATURE-----

Merge tag 'mfd-fixes-5.3' of git://git.kernel.org/pub/scm/linux/kernel/git/lee/mfd

Pull MFD fix from Lee Jones:
 "Identify potentially unused functions in rk808 driver when !PM"

* tag 'mfd-fixes-5.3' of git://git.kernel.org/pub/scm/linux/kernel/git/lee/mfd:
  mfd: rk808: Make PM function declaration static
  mfd: rk808: Mark pm functions __maybe_unused
This commit is contained in:
Linus Torvalds 2019-08-27 10:47:01 -07:00
commit 8d6454083d

View File

@ -729,7 +729,7 @@ static int rk808_remove(struct i2c_client *client)
return 0;
}
static int rk8xx_suspend(struct device *dev)
static int __maybe_unused rk8xx_suspend(struct device *dev)
{
struct rk808 *rk808 = i2c_get_clientdata(rk808_i2c_client);
int ret = 0;
@ -749,7 +749,7 @@ static int rk8xx_suspend(struct device *dev)
return ret;
}
static int rk8xx_resume(struct device *dev)
static int __maybe_unused rk8xx_resume(struct device *dev)
{
struct rk808 *rk808 = i2c_get_clientdata(rk808_i2c_client);
int ret = 0;
@ -768,7 +768,7 @@ static int rk8xx_resume(struct device *dev)
return ret;
}
SIMPLE_DEV_PM_OPS(rk8xx_pm_ops, rk8xx_suspend, rk8xx_resume);
static SIMPLE_DEV_PM_OPS(rk8xx_pm_ops, rk8xx_suspend, rk8xx_resume);
static struct i2c_driver rk808_i2c_driver = {
.driver = {