Re: [PATCH] regulator: core: Add intermediate cast to uintptr_tbefore casting to pointer

From: Mark Brown
Date: Mon Jul 30 2012 - 11:33:06 EST


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