Re: [PATCH] regulator: tps65023: Remove num_voltages array

From: Mark Brown
Date: Tue Aug 02 2011 - 03:57:48 EST


On Tue, Aug 02, 2011 at 03:48:30PM +0800, Axel Lin wrote:

> @@ -519,12 +515,14 @@ static const struct tps_info tps65023_regs[] = {
> .name = "VDCDC2",
> .min_uV = 3300000,
> .max_uV = 3300000,
> + .table_len = 0,
> .fixed = 1,
> },
> {
> .name = "VDCDC3",
> .min_uV = 1800000,
> .max_uV = 1800000,
> + .table_len = 0,
> .fixed = 1,

No need to explicitly set things to zero, it's the default for things
declared static. If this isn't declared static then it should be.
--
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/