From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mika Westerberg Subject: Re: [PATCH 7/8] spi: spi-ep93xx: move the clock divider calcs into ep93xx_spi_chip_setup() Date: Sun, 30 Jun 2013 19:28:27 +0300 Message-ID: <20130630162827.GF786@mwesterb-mobl.lan> References: <201306281145.29079.hartleys@visionengravers.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Cc: grant.likely-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org, spi-devel-general-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org, broonie-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org, Linux Kernel , Ryan Mallon To: H Hartley Sweeten Return-path: Content-Disposition: inline In-Reply-To: <201306281145.29079.hartleys-3FF4nKcrg1dE2c76skzGb0EOCMrvLtNR@public.gmane.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: spi-devel-general-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org List-Id: linux-spi.vger.kernel.org On Fri, Jun 28, 2013 at 11:45:28AM -0700, H Hartley Sweeten wrote: > The divider values stored in the per chip data are only used to set the > registers in the hardware to generate the desired SPI clock. Since these > are calculated per transfer based on the t->speed_hz there is no reason > keep them in the per chip data. > > Move the ep93xx_spi_calc_divisors() call into ep93xx_spi_chip_setup() > and return the dividers thru pointers. Remove the divider values from > the per chip data structure. > > Signed-off-by: H Hartley Sweeten > Cc: Ryan Mallon > Cc: Mika Westerberg Acked-by: Mika Westerberg ------------------------------------------------------------------------------ This SF.net email is sponsored by Windows: Build for Windows Store. http://p.sf.net/sfu/windows-dev2dev