Rather than making this a global, it would be better to just use a stack variable so that the scope of this is more tightly associated with the actual i2c transfer.  Using a global variable here means this driver cannot work with multiple instances of the device.  Right now, the multiple instances would randomly trample each others data.  That would be a **very** difficult bug to track down.