Unverified Commit 0266f954 authored by Srinivas Kandagatla's avatar Srinivas Kandagatla Committed by Mark Brown
Browse files

ASoC: codecs: wcd937x: get regmap directly



Remove usage of dev_get_regmap, as this its more efficient to directly
reference the pointer.

Signed-off-by: default avatarSrinivas Kandagatla <srinivas.kandagatla@oss.qualcomm.com>
Reviewed-by: default avatarDmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
Link: https://patch.msgid.link/20250909121954.225833-14-srinivas.kandagatla@oss.qualcomm.com


Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent edf89180
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2790,7 +2790,7 @@ static int wcd937x_bind(struct device *dev)
		return -EINVAL;
	}

	wcd937x->regmap = dev_get_regmap(&wcd937x->tx_sdw_dev->dev, NULL);
	wcd937x->regmap = wcd937x->sdw_priv[AIF1_CAP]->regmap;
	if (!wcd937x->regmap) {
		dev_err(dev, "could not get TX device regmap\n");
		return -EINVAL;