Dne Wednesday 21 of January 2009 16:40:23 jste napsal(a):
> 2009/1/21 Lukáš Karas <[email protected]>:
> > Hi Erik.
> >
> > I tested your cleanup in s5k83a init sequence today. It work fine in all
> > my test (after clean boot, reboot, resume from suspend (s2ram) and resume
> > from hibernate (s2disk)).
> >
> > I found small, but dangerous error in s5k83a init function during tests.
> > This error set incorrect default ctl values after init. In attachment is
> > patch for fix this.
>
> Hm.
> I don't understand the issue.
> Could you elaborate on it please?
>

In s5k83a world is "sd->sensor_priv" pointer to "s5k83a_priv" struct, instead 
s32 array as in other sensors. 

So, we need 

((struct s5k83a_priv*)sd->sensor_priv)->settings;

instead

sd->sensor_priv;

for get pointer to ctl cache (s32 array).

Regards, Lukas

------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
M560x-driver-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/m560x-driver-devel

Reply via email to