patch for 4x4matrix keypad interfaced to beagleboard using i2c2

hiiiiii
im doing project on beagleboard,i have code for 4x4 matrix keypad
using I2C2 on beagleboard still i need patch for the keypad,can anyone
konw the patch pls give me the solution