[PATCH 2/2] arm: mxs: add i2c-devices

Shawn Guo shawn.guo at freescale.com
Tue Feb 22 02:30:57 EST 2011


On Fri, Feb 18, 2011 at 10:16:18PM +0100, Uwe Kleine-König wrote:
> 
> > diff --git a/arch/arm/mach-mxs/devices/platform-i2c.c b/arch/arm/mach-mxs/devices/platform-i2c.c
> > new file mode 100644
> > index 0000000..22236b2
> > --- /dev/null
> > +++ b/arch/arm/mach-mxs/devices/platform-i2c.c
> > @@ -0,0 +1,56 @@
> > +/*
> > + * Copyright (C) 2011 Pengutronix
> > + * Wolfram Sang <w.sang at pengutronix.de>
> > + *
> > + * This program is free software; you can redistribute it and/or modify it under
> > + * the terms of the GNU General Public License version 2 as published by the
> > + * Free Software Foundation.
> > + */
> > +#include <asm/sizes.h>
> > +#include <mach/mx28.h>
> > +#include <mach/devices-common.h>
> > +
> > +/* helper defines to fix MX23 naming anomaly */
> > +#define MX23_I2C0_BASE_ADDR	MX23_I2C_BASE_ADDR
> > +#define MX23_INT_I2C0_ERROR	MX23_INT_I2C_ERROR
> > +#define MX23_INT_I2C0_DMA	MX23_INT_I2C_DMA
> not needed yet, but OK
> 
It makes less sense to me to have these without including mx23.h.

-- 
Regards,
Shawn



More information about the linux-arm-kernel mailing list