Commit 1d5c7a91 authored by Jiapeng Chong's avatar Jiapeng Chong Committed by Mark Brown

ASoC: codecs: max98088: Clean up some inconsistent indenting

This was found by coccicheck:

sound/soc/codecs/max98088.c:1761 max98088_i2c_probe() warn: inconsistent indenting.
Signed-off-by: default avatarJiapeng Chong <jiapeng.chong@linux.alibaba.com>
Link: https://lore.kernel.org/r/20220701073039.64556-1-jiapeng.chong@linux.alibaba.comSigned-off-by: default avatarMark Brown <broonie@kernel.org>
parent bc4c9d85
...@@ -1745,18 +1745,18 @@ MODULE_DEVICE_TABLE(i2c, max98088_i2c_id); ...@@ -1745,18 +1745,18 @@ MODULE_DEVICE_TABLE(i2c, max98088_i2c_id);
static int max98088_i2c_probe(struct i2c_client *i2c) static int max98088_i2c_probe(struct i2c_client *i2c)
{ {
struct max98088_priv *max98088; struct max98088_priv *max98088;
int ret; int ret;
const struct i2c_device_id *id; const struct i2c_device_id *id;
max98088 = devm_kzalloc(&i2c->dev, sizeof(struct max98088_priv), max98088 = devm_kzalloc(&i2c->dev, sizeof(struct max98088_priv),
GFP_KERNEL); GFP_KERNEL);
if (max98088 == NULL) if (max98088 == NULL)
return -ENOMEM; return -ENOMEM;
max98088->regmap = devm_regmap_init_i2c(i2c, &max98088_regmap); max98088->regmap = devm_regmap_init_i2c(i2c, &max98088_regmap);
if (IS_ERR(max98088->regmap)) if (IS_ERR(max98088->regmap))
return PTR_ERR(max98088->regmap); return PTR_ERR(max98088->regmap);
max98088->mclk = devm_clk_get(&i2c->dev, "mclk"); max98088->mclk = devm_clk_get(&i2c->dev, "mclk");
if (IS_ERR(max98088->mclk)) if (IS_ERR(max98088->mclk))
...@@ -1764,14 +1764,14 @@ static int max98088_i2c_probe(struct i2c_client *i2c) ...@@ -1764,14 +1764,14 @@ static int max98088_i2c_probe(struct i2c_client *i2c)
return PTR_ERR(max98088->mclk); return PTR_ERR(max98088->mclk);
id = i2c_match_id(max98088_i2c_id, i2c); id = i2c_match_id(max98088_i2c_id, i2c);
max98088->devtype = id->driver_data; max98088->devtype = id->driver_data;
i2c_set_clientdata(i2c, max98088); i2c_set_clientdata(i2c, max98088);
max98088->pdata = i2c->dev.platform_data; max98088->pdata = i2c->dev.platform_data;
ret = devm_snd_soc_register_component(&i2c->dev, ret = devm_snd_soc_register_component(&i2c->dev, &soc_component_dev_max98088,
&soc_component_dev_max98088, &max98088_dai[0], 2); &max98088_dai[0], 2);
return ret; return ret;
} }
#if defined(CONFIG_OF) #if defined(CONFIG_OF)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment