[PATCH] [ARM] tegra: Add i2c support
Colin Cross
ccross at google.com
Thu Sep 2 18:17:41 EDT 2010
On Thu, Sep 2, 2010 at 2:54 PM, Colin Cross <ccross at google.com> wrote:
> 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.
I stand corrected - subsys_initcall becomes module_init if it's
compiled as a module. I'll fix it.
More information about the linux-arm-kernel
mailing list