Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755151AbYKGTi4 (ORCPT ); Fri, 7 Nov 2008 14:38:56 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751604AbYKGTip (ORCPT ); Fri, 7 Nov 2008 14:38:45 -0500 Received: from e32.co.us.ibm.com ([32.97.110.150]:51922 "EHLO e32.co.us.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751124AbYKGTio (ORCPT ); Fri, 7 Nov 2008 14:38:44 -0500 Date: Fri, 7 Nov 2008 11:38:31 -0800 From: "Darrick J. Wong" To: Harvey Harrison Cc: Jean Delvare , Andrew Morton , linux-kernel , lm-sensors Subject: Re: [PATCH 1/5] adt7462: New hwmon driver Message-ID: <20081107193831.GB8800@plum> Reply-To: djwong@us.ibm.com References: <20081107185621.13022.61885.stgit@elm3a70.beaverton.ibm.com> <20081107185626.13022.59407.stgit@elm3a70.beaverton.ibm.com> <1226084691.11596.42.camel@brick> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1226084691.11596.42.camel@brick> User-Agent: Mutt/1.5.18 (2008-05-17) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 508 Lines: 14 On Fri, Nov 07, 2008 at 11:04:51AM -0800, Harvey Harrison wrote: > > +#define ROUND_DIV(x, divisor) (((x) + ((divisor) / 2)) / (divisor)) > > DIV_ROUND_UP ? Actually, on closer inspection, DIV_ROUND_UP always rounds up, so I'll implement a ROUND_CLOSEST. --D -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/