Skip to content

Commit edf8918

Browse files
Srinivas Kandagatlabroonie
authored andcommitted
ASoC: codecs: wcd938x: 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-13-srinivas.kandagatla@oss.qualcomm.com Signed-off-by: Mark Brown <broonie@kernel.org>
1 parent 59aebbb commit edf8918

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

sound/soc/codecs/wcd938x.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3389,7 +3389,7 @@ static int wcd938x_bind(struct device *dev)
33893389
goto err_remove_tx_link;
33903390
}
33913391

3392-
wcd938x->regmap = dev_get_regmap(&wcd938x->tx_sdw_dev->dev, NULL);
3392+
wcd938x->regmap = wcd938x->sdw_priv[AIF1_CAP]->regmap;
33933393
if (!wcd938x->regmap) {
33943394
dev_err(dev, "could not get TX device regmap\n");
33953395
ret = -EINVAL;

0 commit comments

Comments
 (0)