projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
607f777
)
ASoC: max98927: Changed device property read function
author
Ryan Lee
<ryans.lee@maximintegrated.com>
Mon, 28 Aug 2017 23:31:01 +0000
(16:31 -0700)
committer
Mark Brown
<broonie@kernel.org>
Thu, 31 Aug 2017 11:46:08 +0000
(12:46 +0100)
Signed-off-by: Ryan Lee <ryans.lee@maximintegrated.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/max98927.c
patch
|
blob
|
blame
|
history
diff --git
a/sound/soc/codecs/max98927.c
b/sound/soc/codecs/max98927.c
index 4bbf2098f2558641ea447c908e2deb93cd05a175..926871e361321833b635c6dcea5c01cd011d6ac5 100644
(file)
--- 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,
struct max98927_priv *max98927)
{
int value;
+ struct device *dev = &i2c->dev;
- if (!of_property_read_u32(i2c->dev.of_node,
- "vmon-slot-no", &value))
+ if (!device_property_read_u32(dev, "vmon-slot-no", &value))
max98927->v_l_slot = value & 0xF;
else
max98927->v_l_slot = 0;
- if (!of_property_read_u32(i2c->dev.of_node,
-
"imon-slot-no", &value))
+
+
if (!device_property_read_u32(dev,
"imon-slot-no", &value))
max98927->i_l_slot = value & 0xF;
else
max98927->i_l_slot = 1;