This will be useful when an implementation of a generic API requires an
int as user data when such has been defined to be a pointer.
int do_something(struct device *dev, void *user_data);
When the implementation would:
int impl_do_something(struct device *dev, void *user_data)
{
int identifier = POINTER_TO_INT(user_data);
...
Change-Id: Ic892927a03ac49e95527ef8e0e817d00256aa3bb
Signed-off-by: Tomasz Bursztyka <tomasz.bursztyka@linux.intel.com>
|
||
|---|---|---|
| .. | ||
| __assert.h | ||
| byteorder.h | ||
| dlist.h | ||
| event_logger.h | ||
| lists_c.h | ||
| lists.h | ||
| printk.h | ||
| profiler.h | ||
| ring_buffer.h | ||
| util.h | ||