Messages in this thread |  | | | Date | Mon, 30 Jul 2012 16:33:09 +0100 | | From | Mark Brown <> | | 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.
|  |