Skip to content

Commit

Permalink
ASoC: zx_aud96p22: make array aud96p22_dt_ids static
Browse files Browse the repository at this point in the history
The array aud96p22_dt_ids is local to the source and does not need to be
in global scope, so make it static.

Cleans up sparse warning:
symbol 'aud96p22_dt_ids' was not declared. Should it be static?

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
  • Loading branch information
Colin Ian King authored and Mark Brown committed Aug 14, 2017
1 parent 4d2c7e0 commit def4b12
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sound/soc/codecs/zx_aud96p22.c
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,7 @@ static int aud96p22_i2c_remove(struct i2c_client *i2c)
return 0;
}

const struct of_device_id aud96p22_dt_ids[] = {
static const struct of_device_id aud96p22_dt_ids[] = {
{ .compatible = "zte,zx-aud96p22", },
{ }
};
Expand Down

0 comments on commit def4b12

Please sign in to comment.