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

From: Harvey Harrison
Date: Fri Nov 07 2008 - 14:05:05 EST


On Fri, 2008-11-07 at 10:56 -0800, Darrick J. Wong wrote:
> New driver to play with. As Jean mentioned a couple of years ago,
> this
> chip is a beast with odd combinations of 8 fans, 4 temperatures, and
> 13 voltage sensors. This driver has been tested on an IntelliStation
> Z30.
>
> Signed-off-by: Darrick J. Wong <djwong@xxxxxxxxxx>
> ---
> +#define MASK_AND_SHIFT(value, prefix) \
> + (((value) & prefix##_MASK) >> prefix##_SHIFT)
> +

I'm not sure, but doesn't this exist somewhere in the common kernel
headers.

> +#define ROUND_DIV(x, divisor) (((x) + ((divisor) / 2)) / (divisor))

DIV_ROUND_UP ?

Harvey

--
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/