[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20120730153309.GK4468@opensource.wolfsonmicro.com>
Date: Mon, 30 Jul 2012 16:33:09 +0100
From: Mark Brown <broonie@...nsource.wolfsonmicro.com>
To: Axel Lin <axel.lin@...il.com>
Cc: Liam Girdwood <lrg@...com>, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] regulator: core: Add intermediate cast to uintptr_t
before casting to pointer
On Mon, Jul 30, 2012 at 07:47:13AM +0800, Axel Lin wrote:
> _notifier_call_chain(rdev, REGULATOR_EVENT_VOLTAGE_CHANGE,
> - (void *)best_val);
> + (void *)(uintptr_t)best_val);
This also looks problematic, you should never need to cast a pointer to
or from void.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists