Re: [PATCH 1/5] adt7462: New hwmon driver

From: Darrick J. Wong
Date: Fri Nov 07 2008 - 14:38:56 EST


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@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/