From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-ew0-f49.google.com ([209.85.215.49]) by bombadil.infradead.org with esmtp (Exim 4.72 #1 (Red Hat Linux)) id 1P1dgw-0000W3-4V for linux-mtd@lists.infradead.org; Fri, 01 Oct 2010 11:22:18 +0000 Received: by ewy9 with SMTP id 9so1415393ewy.36 for ; Fri, 01 Oct 2010 04:22:16 -0700 (PDT) Date: Fri, 1 Oct 2010 15:22:12 +0400 From: Anton Vorontsov To: Mingkai Hu Subject: Re: [PATCH v3 2/7] spi/mpc8xxx: refactor the common code for SPI/eSPI controller Message-ID: <20101001112212.GA17505@oksana.dev.rtsoft.ru> References: <1285833646-12006-1-git-send-email-Mingkai.hu@freescale.com> <1285833646-12006-2-git-send-email-Mingkai.hu@freescale.com> <1285833646-12006-3-git-send-email-Mingkai.hu@freescale.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <1285833646-12006-3-git-send-email-Mingkai.hu@freescale.com> Cc: tie-fei.zang@freescale.com, linuxppc-dev@ozlabs.org, kumar.gala@freescale.com, linux-mtd@lists.infradead.org, spi-devel-general@lists.sourceforge.net List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Thu, Sep 30, 2010 at 04:00:41PM +0800, Mingkai Hu wrote: [...] > -static void mpc8xxx_spi_change_mode(struct spi_device *spi) > +static void fsl_spi_change_mode(struct spi_device *spi) > { > struct mpc8xxx_spi *mspi = spi_master_get_devdata(spi->master); > struct spi_mpc8xxx_cs *cs = spi->controller_state; > - __be32 __iomem *mode = &mspi->base->mode; > + struct fsl_spi_reg *reg_base = (struct fsl_spi_reg *)mspi->reg_base; No need for these type casts (the same is for the whole patch). -- Anton Vorontsov email: cbouatmailru@gmail.com irc://irc.freenode.net/bd2