ay8910: fix undefined behavior in initialization (nw)