On Mon, Apr 3, 2017 at 4:51 AM, Sathyanarayanan Kuppuswamy NatarajanYes, I have included this into the list of issues that needs to fixed during the refactoring effort.
<sathyaosid@xxxxxxxxx> wrote:
That's one of refactoring needed for this library. You need to pass aBut ipcdev is a static variable, visible across this file. So there is+static inline int is_gcr_valid(u32 offset)Pointer to ipcdev should be a parameter to this function.
no point in passing it as parameter.
pointer to all internal functions and where it's possible to avoid
reference to a global variable.