Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 270463
b: refs/heads/master
c: 58e4942
h: refs/heads/master
i:
  270461: b7ca4fa
  270459: b786c64
  270455: 31a6184
  270447: 8818eae
  270431: 88ec689
  270399: 05855c6
  270335: 472def9
v: v3
  • Loading branch information
Shawn Guo authored and Mark Brown committed Jul 29, 2011
1 parent e8e27a1 commit dd99ba8
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: a7f96e4dc6bb5f45d0612782419e6a63032a2ac0
refs/heads/master: 58e494247a9f09f0ae8d9867fcfb672a9bcdd6ae
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
* Freescale SGTL5000 Stereo Codec

Required properties:
- compatible : "fsl,sgtl5000".

Example:

codec: sgtl5000@0a {
compatible = "fsl,sgtl5000";
reg = <0x0a>;
};
8 changes: 8 additions & 0 deletions trunk/sound/soc/codecs/sgtl5000.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
#include <linux/regulator/driver.h>
#include <linux/regulator/machine.h>
#include <linux/regulator/consumer.h>
#include <linux/of_device.h>
#include <sound/core.h>
#include <sound/tlv.h>
#include <sound/pcm.h>
Expand Down Expand Up @@ -1494,10 +1495,17 @@ static const struct i2c_device_id sgtl5000_id[] = {

MODULE_DEVICE_TABLE(i2c, sgtl5000_id);

static const struct of_device_id sgtl5000_dt_ids[] = {
{ .compatible = "fsl,sgtl5000", },
{ /* sentinel */ }
};
MODULE_DEVICE_TABLE(i2c, sgtl5000_dt_ids);

static struct i2c_driver sgtl5000_i2c_driver = {
.driver = {
.name = "sgtl5000",
.owner = THIS_MODULE,
.of_match_table = sgtl5000_dt_ids,
},
.probe = sgtl5000_i2c_probe,
.remove = __devexit_p(sgtl5000_i2c_remove),
Expand Down

0 comments on commit dd99ba8

Please sign in to comment.