> On 03/09/11 00:12, Marc Dietrich wrote:
> > Am Dienstag 08 März 2011, um 13:58:58 schrieb Mike Rapoport:
> >>
> >> diff --git a/arch/arm/mach-tegra/board-harmony-power.c
> >> b/arch/arm/mach-tegra/board-harmony-power.c
> >> new file mode 100644
> >> index 0000000..ca43d7a
> >> --- /dev/null
> >> +++ b/arch/arm/mach-tegra/board-harmony-power.c
> > ...
> >> +static struct i2c_board_info __initdata harmony_regulators[] = {
> >> + {
> >> + I2C_BOARD_INFO("tps6586x", 0x34),
> >> + .irq = INT_EXTERNAL_PMU,
> >> + .platform_data = &tps_platform,
> >> + },
> >> +};
> >> +
> >> +int __init harmony_regulator_init(void)
> >> +{
> >> + i2c_register_board_info(3, harmony_regulators, 1);
> >
> > I don't know harmony well, but are you sure this is 3, not 4, as on all
> > other boards?
>
> In the mainline version of i2c-tegra the adapter (and therefore bus) number
> equals the platform device id, and in case of DVC adapter it's 3.
Thanks for clarification. I guess this saved me from some headaches.
Marc
--
To unsubscribe from this list: send the line "unsubscribe linux-tegra" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html