ASoC: sgtl5000: Read SGTL5000_CHIP_ID in i2c_probe()
authorFabio Estevam <fabio.estevam@freescale.com>
Fri, 10 May 2013 00:15:46 +0000 (21:15 -0300)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Sun, 12 May 2013 16:50:02 +0000 (20:50 +0400)
commitb871f1ad3c8a1ac2fb862f9261f14a67dc2c7b7d
tree13e2c366ab0336a85bb1aa6da8334f4f78c1c36f
parent24279dcee5456bb141a1ca007a3f0abe02bf91d0
ASoC: sgtl5000: Read SGTL5000_CHIP_ID in i2c_probe()

The usual place for reading chip ID is inside i2c_probe, so move it there and
also convert it to regmap.

sgtl5000_enable_regulators() needs to read the chip revision, so keep the
revision check there.

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
sound/soc/codecs/sgtl5000.c
This page took 0.032412 seconds and 5 git commands to generate.