Skip to content

Commit 0266f95

Browse files
Srinivas Kandagatlabroonie
authored andcommitted
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: Srinivas Kandagatla <srinivas.kandagatla@oss.qualcomm.com> Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com> Link: https://patch.msgid.link/20250909121954.225833-14-srinivas.kandagatla@oss.qualcomm.com Signed-off-by: Mark Brown <broonie@kernel.org>
1 parent edf8918 commit 0266f95

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

sound/soc/codecs/wcd937x.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2790,7 +2790,7 @@ static int wcd937x_bind(struct device *dev)
27902790
return -EINVAL;
27912791
}
27922792

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

0 commit comments

Comments
 (0)