From mboxrd@z Thu Jan 1 00:00:00 1970 From: Maxime Ripard Subject: [PATCHv4 3/9] ARM: orion: pass the i2c registers definition through the platform data Date: Wed, 12 Jun 2013 10:07:12 +0200 Message-ID: <1371024438-16631-4-git-send-email-maxime.ripard@free-electrons.com> References: <1371024438-16631-1-git-send-email-maxime.ripard@free-electrons.com> Reply-To: linux-sunxi-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Return-path: In-Reply-To: <1371024438-16631-1-git-send-email-maxime.ripard-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org> List-Post: , List-Help: , List-Archive: Sender: linux-sunxi-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org List-Subscribe: , List-Unsubscribe: , To: Wolfram Sang , Jason Cooper , Andrew Lunn Cc: linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org, Emilio Lopez , kevin-0TFLnhJekD6UEPyfVivIlAC/G2K4zDHf@public.gmane.org, sunny-0TFLnhJekD6UEPyfVivIlAC/G2K4zDHf@public.gmane.org, shuge-0TFLnhJekD6UEPyfVivIlAC/G2K4zDHf@public.gmane.org, linux-i2c-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-sunxi-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org, Tomasz Figa , Maxime Ripard List-Id: linux-i2c@vger.kernel.org Convert the existing platform data users of the MV64XXX i2c driver to pass the registers offset structure along with the platform data. Signed-off-by: Maxime Ripard --- arch/arm/plat-orion/common.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/plat-orion/common.c b/arch/arm/plat-orion/common.c index c019b7a..c166fc9 100644 --- a/arch/arm/plat-orion/common.c +++ b/arch/arm/plat-orion/common.c @@ -509,6 +509,7 @@ void __init orion_ge00_switch_init(struct dsa_platform_data *d, int irq) ****************************************************************************/ static struct mv64xxx_i2c_pdata orion_i2c_pdata = { .freq_n = 3, + .regs = &mv64xxx_i2c_regs_mv64xxx, .timeout = 1000, /* Default timeout of 1 second */ }; @@ -524,6 +525,7 @@ static struct platform_device orion_i2c = { static struct mv64xxx_i2c_pdata orion_i2c_1_pdata = { .freq_n = 3, + .regs = &mv64xxx_i2c_regs_mv64xxx, .timeout = 1000, /* Default timeout of 1 second */ }; -- 1.8.3