Skip to content

Commit

Permalink
ASoC: cs42xx8: Setup of_match_table
Browse files Browse the repository at this point in the history
Setup of_match_table and since cs42xx8_of_match is exported and used in
cs42xx8-i2c.c, it cannot be static.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Acked-by: Brian Austin <brian.austin@cirrus.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
  • Loading branch information
Axel Lin authored and Mark Brown committed Jul 7, 2015
1 parent d375d0a commit 5e4cb7b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion sound/soc/codecs/cs42xx8-i2c.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
static int cs42xx8_i2c_probe(struct i2c_client *i2c,
const struct i2c_device_id *id)
{
u32 ret = cs42xx8_probe(&i2c->dev,
int ret = cs42xx8_probe(&i2c->dev,
devm_regmap_init_i2c(i2c, &cs42xx8_regmap_config));
if (ret)
return ret;
Expand Down Expand Up @@ -51,6 +51,7 @@ static struct i2c_driver cs42xx8_i2c_driver = {
.name = "cs42xx8",
.owner = THIS_MODULE,
.pm = &cs42xx8_pm,
.of_match_table = cs42xx8_of_match,
},
.probe = cs42xx8_i2c_probe,
.remove = cs42xx8_i2c_remove,
Expand Down
2 changes: 1 addition & 1 deletion sound/soc/codecs/cs42xx8.c
Original file line number Diff line number Diff line change
Expand Up @@ -425,7 +425,7 @@ const struct cs42xx8_driver_data cs42888_data = {
};
EXPORT_SYMBOL_GPL(cs42888_data);

static const struct of_device_id cs42xx8_of_match[] = {
const struct of_device_id cs42xx8_of_match[] = {
{ .compatible = "cirrus,cs42448", .data = &cs42448_data, },
{ .compatible = "cirrus,cs42888", .data = &cs42888_data, },
{ /* sentinel */ }
Expand Down
1 change: 1 addition & 0 deletions sound/soc/codecs/cs42xx8.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ extern const struct dev_pm_ops cs42xx8_pm;
extern const struct cs42xx8_driver_data cs42448_data;
extern const struct cs42xx8_driver_data cs42888_data;
extern const struct regmap_config cs42xx8_regmap_config;
extern const struct of_device_id cs42xx8_of_match[];
int cs42xx8_probe(struct device *dev, struct regmap *regmap);

/* CS42888 register map */
Expand Down

0 comments on commit 5e4cb7b

Please sign in to comment.