9 Jun
2013
9 Jun
'13
7:43 p.m.
@@ -653,6 +676,13 @@ static int adau1701_i2c_probe(struct i2c_client *client,
of_property_read_u32(dev->of_node, "adi,pll-clkdiv", &adau1701->pll_clkdiv);
pin_config32 = of_get_property(dev->of_node,
"adi,pin-config", &size);
size /= sizeof(u32);
size = min(ARRAY_SIZE(adau1701->pin_config), size);
for (i = 0; i < size; i++)
}adau1701->pin_config[i] = be32_to_cpup(pin_config32 + i);
of_property_read_u32_array
if (gpio_is_valid(gpio_nreset)) {