From: Arnd Bergmann Subject: Re: [PATCH v10] i2c-designware: make SDA hold time configurable Date: Wed, 3 Jul 2013 17:26:41 +0200 Message-ID: <201307031726.42167.arnd@arndb.de> References: <20130625163902.GA2973@katana> <20130703145918.GE3929@ab42.lan> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: devicetree-discuss-bounces+gldd-devicetree-discuss=m.gmane.org-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org Sender: "devicetree-discuss" To: Stehle Vincent-B46079 Cc: Christian Ruppert , Pierrick Hascoet , Wolfram Sang , "devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org" , "linux-doc-u79uwXL29TY76Z2rM5mHXA@public.gmane.org" , "linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org" , "linux-i2c-u79uwXL29TY76Z2rM5mHXA@public.gmane.org" , "Ben Dooks (embedded platforms)" , Mika Westerberg , Vineet Gupta List-Id: devicetree@vger.kernel.org On Wednesday 03 July 2013, Stehle Vincent-B46079 wrote: > > From: Christian Ruppert [mailto:christian.ruppert-ux6zf3SgZrrQT0dZR+AlfA@public.gmane.org] > (..) > > Although this doesn't explicitly state what the function returns to me > > this sounds more like the quotient is returned rather than the remainder? > > Hi, > > Yes div_u64() returns the quotient. > > It is defined in linux/math64.h as: > > static inline u64 div_u64(u64 dividend, u32 divisor) > { > u32 remainder; > return div_u64_rem(dividend, divisor, &remainder); > } > > The remainder is probably fully optimized out. Ah, you are right, sorry for the confusion on my part. I thought you had used do_div() rather than div_u64(). Everything's fine then, feel free to add my Acked-by: Arnd Bergmann to your patch. Arnd