diff options
author | Ryan Lee <ryans.lee@maximintegrated.com> | 2017-08-28 19:31:01 -0400 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2017-08-31 07:46:08 -0400 |
commit | dea110501745734baf7a90dc1e1b50481ade6191 (patch) | |
tree | f86a3ffe12a9f78a5dd99b36f7dbc41d57e1adf3 | |
parent | 607f7777bf0c0224bfadd31a37acc8d1fd25324d (diff) |
ASoC: max98927: Changed device property read function
Signed-off-by: Ryan Lee <ryans.lee@maximintegrated.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
-rw-r--r-- | sound/soc/codecs/max98927.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sound/soc/codecs/max98927.c b/sound/soc/codecs/max98927.c index 4bbf2098f255..926871e36132 100644 --- a/sound/soc/codecs/max98927.c +++ b/sound/soc/codecs/max98927.c | |||
@@ -759,14 +759,14 @@ static void max98927_slot_config(struct i2c_client *i2c, | |||
759 | struct max98927_priv *max98927) | 759 | struct max98927_priv *max98927) |
760 | { | 760 | { |
761 | int value; | 761 | int value; |
762 | struct device *dev = &i2c->dev; | ||
762 | 763 | ||
763 | if (!of_property_read_u32(i2c->dev.of_node, | 764 | if (!device_property_read_u32(dev, "vmon-slot-no", &value)) |
764 | "vmon-slot-no", &value)) | ||
765 | max98927->v_l_slot = value & 0xF; | 765 | max98927->v_l_slot = value & 0xF; |
766 | else | 766 | else |
767 | max98927->v_l_slot = 0; | 767 | max98927->v_l_slot = 0; |
768 | if (!of_property_read_u32(i2c->dev.of_node, | 768 | |
769 | "imon-slot-no", &value)) | 769 | if (!device_property_read_u32(dev, "imon-slot-no", &value)) |
770 | max98927->i_l_slot = value & 0xF; | 770 | max98927->i_l_slot = value & 0xF; |
771 | else | 771 | else |
772 | max98927->i_l_slot = 1; | 772 | max98927->i_l_slot = 1; |