lkml.org 
[lkml]   [2012]   [Jun]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectQ: return of pinctrl_register and handing at drivers that use this function
From
Hi,

since the pinctrl_register returns a pointer of structure type "struct
pinctrl_dev" or NULL if it was failed to register the pinctrl driver,
so IS_ERR checking is not required?

My understanding about IS_ERR is that its used when the pointer
addresses are kind of error codes rather actual addresses,
but are a kind of return codes of functions returning integer types.

Please correct me if my understanding is not correct.

Thanks,
Devendra.


\
 
 \ /
  Last update: 2012-06-18 14:42    [W:0.054 / U:1.468 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site