Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

mfd: arizona: Add DT binding for the DMIC reference voltages

Add a DT binding that lets the DMIC reference voltage source be
specified for each input.

Signed-off-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>

authored by

Charles Keepax and committed by
Lee Jones
e7ad27ca 224995d7

+10
+10
drivers/mfd/arizona-core.c
··· 561 561 count++; 562 562 } 563 563 564 + count = 0; 565 + of_property_for_each_u32(arizona->dev->of_node, "wlf,dmic-ref", prop, 566 + cur, val) { 567 + if (count == ARRAY_SIZE(arizona->pdata.dmic_ref)) 568 + break; 569 + 570 + arizona->pdata.dmic_ref[count] = val; 571 + count++; 572 + } 573 + 564 574 return 0; 565 575 } 566 576