ASoC: codecs: max98390: simplify getting the adapter of a client

We have a dedicated pointer for that, so use it. Much easier to read and
less computation involved.

Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Link: https://lore.kernel.org/r/20210918213553.14514-2-wsa+renesas@sang-engineering.com
Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
Wolfram Sang 2021-09-18 23:35:52 +02:00 коммит произвёл Mark Brown
Родитель 5374b9215d
Коммит 0f9a84b20f
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 24D68B725D5487D0
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -1021,7 +1021,7 @@ static int max98390_i2c_probe(struct i2c_client *i2c,
int reg = 0; int reg = 0;
struct max98390_priv *max98390 = NULL; struct max98390_priv *max98390 = NULL;
struct i2c_adapter *adapter = to_i2c_adapter(i2c->dev.parent); struct i2c_adapter *adapter = i2c->adapter;
ret = i2c_check_functionality(adapter, ret = i2c_check_functionality(adapter,
I2C_FUNC_SMBUS_BYTE I2C_FUNC_SMBUS_BYTE