[PATCH] [ARM] tegra: Add i2c support
Colin Cross
ccross at google.com
Thu Sep 2 17:54:52 EDT 2010
On Tue, Aug 10, 2010 at 7:57 AM, Mike Rapoport <mike at compulab.co.il> wrote:
> Hi Colin,
> Two more comments.
>
> Colin Cross wrote:
>>
>> From: Colin Cross <ccross at android.com>
>>
>> CC: linux-i2c at vger.kernel.org
>> Signed-off-by: Colin Cross <ccross at android.com>
>> ---
>> drivers/i2c/busses/Kconfig | 7 +
>> drivers/i2c/busses/Makefile | 1 +
>> drivers/i2c/busses/i2c-tegra.c | 665
>> ++++++++++++++++++++++++++++++++++++++++
>> include/linux/i2c-tegra.h | 25 ++
>
> This should probably go to arch/arm/mach-tegra/include/mach/ to minimize the
> pollution in include/linux
The existing standard seems to be to use include/linux
>> 4 files changed, 698 insertions(+), 0 deletions(-)
>> create mode 100644 drivers/i2c/busses/i2c-tegra.c
>> create mode 100644 include/linux/i2c-tegra.h
>>
>
> [ snip ]
>
>> +
>> +static int __init tegra_i2c_init_driver(void)
>> +{
>> + return platform_driver_register(&tegra_i2c_driver);
>> +}
>> +module_init(tegra_i2c_init_driver);
>
> subsys_initcall would be better here.
This can be compiled as a module, subsys_initcall would break that.
More information about the linux-arm-kernel
mailing list